https://github.com/libsdl-org/Maelstrom/commit/517d5f893a18d4e9eddc21c30eeeb22240001e82
From 517d5f893a18d4e9eddc21c30eeeb22240001e82 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 17 Sep 2012 20:46:55 -0700
Subject: [PATCH] Fixed initial display on iOS when the taskbar is visible
---
screenlib/SDL_FrameBuf.cpp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/screenlib/SDL_FrameBuf.cpp b/screenlib/SDL_FrameBuf.cpp
index 433e93cc..14050fdd 100644
--- a/screenlib/SDL_FrameBuf.cpp
+++ b/screenlib/SDL_FrameBuf.cpp
@@ -87,7 +87,14 @@ FrameBuf:: Init(int width, int height, Uint32 window_flags, Uint32 render_flags,
}
/* Set the output area */
- UpdateWindowSize(width, height);
+ if ( window_flags & SDL_WINDOW_RESIZABLE ) {
+ int w, h;
+
+ SDL_GetWindowSize(window, &w, &h);
+ UpdateWindowSize(w, h);
+ } else {
+ UpdateWindowSize(width, height);
+ }
/* Copy the image colormap */
if ( colors ) {