Update bounds in NativeResized as well to fix glitches on layout screens that use it.

This commit is contained in:
LunaMoo committed 2017-12-11 21:02:47 +01:00
1 parent a931f1c133
commit f06f9f7246
1 file changed
+4
+4
View File
@@ -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");
}