1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 10:29:10 +00:00

(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.

This commit is contained in:
rubidium
2007-07-07 17:33:29 +00:00
parent 282bb875af
commit 5b90b91ce3

View File

@@ -652,8 +652,8 @@ static Window *LocalAllocateWindow(
_last_z_window++;
}
SetWindowDirty(w);
CallWindowEventNP(w, WE_CREATE);
SetWindowDirty(w);
return w;
}