From 36ce7e09ef2c3bbf4445387259e8217399df27e0 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 5 Jul 2009 14:26:29 +0000 Subject: [PATCH] (svn r16747) -Fix: Non-resized windows also need a post re-init SetDirty. --- src/window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/window.cpp b/src/window.cpp index 29aec3ab34..49132a48dc 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -593,7 +593,10 @@ void Window::ReInit() if (this->resize.step_width > 1) dx -= dx % (int)this->resize.step_width; if (this->resize.step_height > 1) dy -= dy % (int)this->resize.step_height; - if (dx == 0 && dy == 0) return; // No resize needed. + if (dx == 0 && dy == 0) { // No resize needed. + this->SetDirty(); + return; + } ResizeWindow(this, dx, dy); // Sets post-resize dirty blocks. Point diff;