From 19a0d3cbb7ca5b12057b195051de4ae8000c7a32 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 17 Aug 2021 14:36:12 +0300 Subject: Window: Redraw tweaks on MSYS --- src/ui/window.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ui/window.c b/src/ui/window.c index 64dcd6f2..1727b988 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -219,9 +219,9 @@ static void updateSize_Window_(iWindow *d, iBool notifyAlways) { size->y -= d->keyboardHeight; if (notifyAlways || !isEqual_I2(oldSize, *size)) { windowSizeChanged_Window_(d); - const iBool isHoriz = (d->place.lastNotifiedSize.x != size->x); - const iBool isVert = (d->place.lastNotifiedSize.y != size->y); if (!isEqual_I2(*size, d->place.lastNotifiedSize)) { + const iBool isHoriz = (d->place.lastNotifiedSize.x != size->x); + const iBool isVert = (d->place.lastNotifiedSize.y != size->y); postCommandf_App("window.resized width:%d height:%d horiz:%d vert:%d", size->x, size->y, @@ -235,10 +235,6 @@ static void updateSize_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->size = coord_Window(d, w, h); - windowSizeChanged_Window_(d); draw_Window(d); } -- cgit v1.2.3