mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +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:
parent
282bb875af
commit
5b90b91ce3
@ -652,8 +652,8 @@ static Window *LocalAllocateWindow(
|
|||||||
_last_z_window++;
|
_last_z_window++;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetWindowDirty(w);
|
|
||||||
CallWindowEventNP(w, WE_CREATE);
|
CallWindowEventNP(w, WE_CREATE);
|
||||||
|
SetWindowDirty(w);
|
||||||
|
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user