Changeset - r12317:a8342810fe68
[Not reviewed]
master
0 1 0
alberth - 15 years ago 2009-07-05 14:26:29
alberth@openttd.org
(svn r16747) -Fix: Non-resized windows also need a post re-init SetDirty.
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/window.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)