changeset 7190:9da96efbf426 draft

(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.
author rubidium <rubidium@openttd.org>
date Sat, 07 Jul 2007 17:33:29 +0000
parents 971e4506fbaf
children 069acc1dfaf7
files src/window.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -652,8 +652,8 @@
 		_last_z_window++;
 	}
 
+	CallWindowEventNP(w, WE_CREATE);
 	SetWindowDirty(w);
-	CallWindowEventNP(w, WE_CREATE);
 
 	return w;
 }