From c8e6fb0b562cd18d2a01952b594c50871749ae4c Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 17 Nov 2020 00:51:56 +1100 Subject: [PATCH] Fix some screens appearing messed up initially when graphics context is recreated Note that this would automatically correct itself anyways when mouse was moved/clicked --- src/Gui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gui.c b/src/Gui.c index 15bc0a877..b4e85d58d 100644 --- a/src/Gui.c +++ b/src/Gui.c @@ -111,6 +111,7 @@ static void OnContextRecreated(void* obj) { for (i = 0; i < Gui.ScreensCount; i++) { s = Gui_Screens[i]; s->VTABLE->ContextRecreated(s); + s->dirty = true; } }