summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-07 17:33:29 +0000
committerrubidium <rubidium@openttd.org>2007-07-07 17:33:29 +0000
commit6a5d9e28c12c47f13336b0964a618d8006c75854 (patch)
treeac5315c9478ff99f009215a2e6b773ce9801f9a7 /src/window.cpp
parente8bbfb4a7071a47550fe0b7e962c367c6744cd48 (diff)
downloadopenttd-6a5d9e28c12c47f13336b0964a618d8006c75854.tar.xz
(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.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index f15061c92..325242b3a 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -652,8 +652,8 @@ static Window *LocalAllocateWindow(
_last_z_window++;
}
- SetWindowDirty(w);
CallWindowEventNP(w, WE_CREATE);
+ SetWindowDirty(w);
return w;
}