summaryrefslogtreecommitdiff
path: root/src/ui/window.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-11 11:28:43 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-11 11:28:43 +0200
commitbfdda501cb01df95c968c9f5378bb91cd66eea87 (patch)
tree0862ec95e4ba9f6080c5fa7f5e41bc51b049ea5d /src/ui/window.h
parent66babe2b1e670012e8c36d219f20e6fa69462a9b (diff)
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.
Diffstat (limited to 'src/ui/window.h')
-rw-r--r--src/ui/window.h1
1 files changed, 1 insertions, 0 deletions
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 {
38 iRect lastRect; /* updated when window is moved/resized */ 38 iRect lastRect; /* updated when window is moved/resized */
39 iInt2 lastNotifiedSize; /* keep track of horizontal/vertical notifications */ 39 iInt2 lastNotifiedSize; /* keep track of horizontal/vertical notifications */
40 iBool isDrawFrozen; /* avoids premature draws while restoring window state */ 40 iBool isDrawFrozen; /* avoids premature draws while restoring window state */
41 iBool isExposed;
41 iBool isMouseInside; 42 iBool isMouseInside;
42 uint32_t focusGainedAt; 43 uint32_t focusGainedAt;
43 SDL_Renderer *render; 44 SDL_Renderer *render;