From f06f9f7246d005350ca3b328c181ee4e732ef1d8 Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Mon, 11 Dec 2017 21:02:47 +0100 Subject: [PATCH] Update bounds in NativeResized as well to fix glitches on layout screens that use it. --- UI/NativeApp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index a56bebe199..6e80ed508c 100644 --- a/UI/NativeApp.cpp +++ b/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"); }