diff options
author | alberth <alberth@openttd.org> | 2009-07-05 14:26:29 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-07-05 14:26:29 +0000 |
commit | e1a26058e90e3f0e80df044f8f65161f126e88d0 (patch) | |
tree | d9140db2fe35db2e34d8b874a4b4ed7e68fb12af /src | |
parent | 59f94619c75be0ff4dc5f6edf8e0b365261dc9d6 (diff) | |
download | openttd-e1a26058e90e3f0e80df044f8f65161f126e88d0.tar.xz |
(svn r16747) -Fix: Non-resized windows also need a post re-init SetDirty.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp index 29aec3ab3..49132a48d 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; |