summaryrefslogtreecommitdiff
path: root/src
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
commit5b90b91ce35fc79947a928393e789ccb6e728848 (patch)
treeac5315c9478ff99f009215a2e6b773ce9801f9a7 /src
parent282bb875af14dc9839f8d621fa68a9628282cd3e (diff)
downloadopenttd-5b90b91ce35fc79947a928393e789ccb6e728848.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')
-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;
}