From c8aaa4df1abb63c59bdaa06652a52270783cbe56 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 28 Nov 2020 08:37:06 +0200 Subject: Windows: Refreshing window contents during window resizing SDL clears all buffered rendertargets so we must redraw everything. --- src/ui/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/window.c') 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) { void drawWhileResizing_Window(iWindow *d, int w, int h) { /* This is called while a window resize is in progress, so we can be pretty confident the size has actually changed. */ - d->root->rect.size = mulf_I2(init_I2(w, h), d->pixelRatio); + d->root->rect.size = coord_Window(d, w, h); arrange_Widget(d->root); draw_Window(d); } -- cgit v1.2.3