Changeset - r13586:6a799b6a5c13
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-11-16 17:01:25
rubidium@openttd.org
(svn r18120) -Fix (r18119): sometimes ReInit didn't dirty the new window
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/window.cpp
Show inline comments
 
@@ -516,12 +516,13 @@ void Window::ReInit(int rx, int ry)
 
	 * The cast to int is necessary else dx/dy are implicitly casted to unsigned int, which won't work. */
 
	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;
 

	
 
	ResizeWindow(this, dx, dy);
 
	this->OnResize();
 
	this->SetDirty();
 
}
 

	
 
/** Find the Window whose parent pointer points to this window
 
 * @param w parent Window to find child of
 
 * @param wc Window class of the window to remove; WC_INVALID if class does not matter
 
 * @return a Window pointer that is the child of w, or NULL otherwise
0 comments (0 inline, 0 general)