diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-11 11:28:43 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-11 11:28:43 +0200 |
commit | bfdda501cb01df95c968c9f5378bb91cd66eea87 (patch) | |
tree | 0862ec95e4ba9f6080c5fa7f5e41bc51b049ea5d /src/ui/window.h | |
parent | 66babe2b1e670012e8c36d219f20e6fa69462a9b (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.h | 1 |
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; |