summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-28 08:37:06 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-28 08:37:06 +0200
commitc8aaa4df1abb63c59bdaa06652a52270783cbe56 (patch)
treeb71404a9bc3971d9c14fc2e0b574425b26724d3c /src/ui/window.c
parent95a6963112f430dfae63ee6b801b36985482a541 (diff)
Windows: Refreshing window contents during window resizing
SDL clears all buffered rendertargets so we must redraw everything.
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index dd9181ad..dadfae6d 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -528,7 +528,7 @@ static void updateRootSize_Window_(iWindow *d, iBool notifyAlways) {
528void drawWhileResizing_Window(iWindow *d, int w, int h) { 528void drawWhileResizing_Window(iWindow *d, int w, int h) {
529 /* This is called while a window resize is in progress, so we can be pretty confident 529 /* This is called while a window resize is in progress, so we can be pretty confident
530 the size has actually changed. */ 530 the size has actually changed. */
531 d->root->rect.size = mulf_I2(init_I2(w, h), d->pixelRatio); 531 d->root->rect.size = coord_Window(d, w, h);
532 arrange_Widget(d->root); 532 arrange_Widget(d->root);
533 draw_Window(d); 533 draw_Window(d);
534} 534}