Permalink
Browse files

Update bounds in NativeResized as well to fix glitches on layout scre…

…ens that use it.
  • Loading branch information...
LunaMoo committed Dec 11, 2017
1 parent a931f1c commit f06f9f7246d005350ca3b328c181ee4e732ef1d8
Showing with 4 additions and 0 deletions.
  1. +4 −0 UI/NativeApp.cpp
@@ -1100,6 +1100,10 @@ void NativeResized() {
// NativeResized can come from any thread so we just set a flag, then process it later.
if (g_graphicsInited) {
resized = true;
if (uiContext) {
// Still have to update bounds to avoid problems in display layout and touch controls layout screens
uiContext->SetBounds(Bounds(0, 0, dp_xres, dp_yres));
}
} else {
ILOG("NativeResized ignored, not initialized");
}

0 comments on commit f06f9f7

Please sign in to comment.