diff options
author | rubidium <rubidium@openttd.org> | 2007-07-07 17:33:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-07 17:33:29 +0000 |
commit | 6a5d9e28c12c47f13336b0964a618d8006c75854 (patch) | |
tree | ac5315c9478ff99f009215a2e6b773ce9801f9a7 | |
parent | e8bbfb4a7071a47550fe0b7e962c367c6744cd48 (diff) | |
download | openttd-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.
-rw-r--r-- | src/window.cpp | 2 |
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; } |