summaryrefslogtreecommitdiff
path: root/src/ui/window.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-03 15:22:02 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-03 15:22:02 +0300
commit8e8e486a2969dbc20b3c3a08023267e9eab53265 (patch)
treeee5bf60115de72b0183c34a68b6236299e05593b /src/ui/window.h
parentb02c72a21692435dd974c2b767ee3e003ed6f846 (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.h5
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)
114SDL_HitTestResult hitTest_Window(const iWindow *d, iInt2 pos); 114SDL_HitTestResult hitTest_Window(const iWindow *d, iInt2 pos);
115#endif 115#endif
116
117iLocalDef iBool isExposed_Window(const iWindow *d) {
118 iAssert(d);
119 return d->isExposed;
120}