diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-28 08:37:06 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-28 08:37:06 +0200 |
commit | c8aaa4df1abb63c59bdaa06652a52270783cbe56 (patch) | |
tree | b71404a9bc3971d9c14fc2e0b574425b26724d3c /src/ui/window.c | |
parent | 95a6963112f430dfae63ee6b801b36985482a541 (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.c | 2 |
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) { | |||
528 | void drawWhileResizing_Window(iWindow *d, int w, int h) { | 528 | void 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 | } |