From bfdda501cb01df95c968c9f5378bb91cd66eea87 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 11 Feb 2021 11:28:43 +0200 Subject: Windows: Draw something immediately when the window is opened Avoids having a flash of white or other system-provided default window contents when opening a window for the first time. --- src/ui/window.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ui/window.h') diff --git a/src/ui/window.h b/src/ui/window.h index 25d81e6f..5bde9065 100644 --- a/src/ui/window.h +++ b/src/ui/window.h @@ -38,6 +38,7 @@ struct Impl_Window { iRect lastRect; /* updated when window is moved/resized */ iInt2 lastNotifiedSize; /* keep track of horizontal/vertical notifications */ iBool isDrawFrozen; /* avoids premature draws while restoring window state */ + iBool isExposed; iBool isMouseInside; uint32_t focusGainedAt; SDL_Renderer *render; -- cgit v1.2.3