mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 02:19:41 +00:00
(svn r16747) -Fix: Non-resized windows also need a post re-init SetDirty.
This commit is contained in:
parent
59f94619c7
commit
e1a26058e9
@ -593,7 +593,10 @@ void Window::ReInit()
|
|||||||
if (this->resize.step_width > 1) dx -= dx % (int)this->resize.step_width;
|
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 (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.
|
ResizeWindow(this, dx, dy); // Sets post-resize dirty blocks.
|
||||||
Point diff;
|
Point diff;
|
||||||
|
Loading…
Reference in New Issue
Block a user