diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-03 15:22:02 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-03 15:22:02 +0300 |
commit | 8e8e486a2969dbc20b3c3a08023267e9eab53265 (patch) | |
tree | ee5bf60115de72b0183c34a68b6236299e05593b /src/ui/window.h | |
parent | b02c72a21692435dd974c2b767ee3e003ed6f846 (diff) |
Drawing only during window update
Glyphs were inadvertently being cached already during measuring for layout.
DocumentWidget was buffering graphics too early. Now buffered draws are prepared during normal drawing, when needed.
Diffstat (limited to 'src/ui/window.h')
-rw-r--r-- | src/ui/window.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/window.h b/src/ui/window.h index 7303acb2..6960e03e 100644 --- a/src/ui/window.h +++ b/src/ui/window.h | |||
@@ -113,3 +113,8 @@ iWindow * get_Window (void); | |||
113 | #if defined (LAGRANGE_CUSTOM_FRAME) | 113 | #if defined (LAGRANGE_CUSTOM_FRAME) |
114 | SDL_HitTestResult hitTest_Window(const iWindow *d, iInt2 pos); | 114 | SDL_HitTestResult hitTest_Window(const iWindow *d, iInt2 pos); |
115 | #endif | 115 | #endif |
116 | |||
117 | iLocalDef iBool isExposed_Window(const iWindow *d) { | ||
118 | iAssert(d); | ||
119 | return d->isExposed; | ||
120 | } | ||