Changeset - r7190:c4c54c4adc93
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-07-07 17:33:29
rubidium@openttd.org
(svn r10465) -Fix: first run the WE_CREATE callback and then perform the dirtying of the window, so you won't get glitches if you resize a window in the WE_CREATE callback.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/window.cpp
Show inline comments
 
@@ -652,8 +652,8 @@ static Window *LocalAllocateWindow(
 
		_last_z_window++;
 
	}
 

	
 
	CallWindowEventNP(w, WE_CREATE);
 
	SetWindowDirty(w);
 
	CallWindowEventNP(w, WE_CREATE);
 

	
 
	return w;
 
}
0 comments (0 inline, 0 general)