diff options
author | alberth <alberth@openttd.org> | 2009-07-09 19:52:47 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-07-09 19:52:47 +0000 |
commit | 7f851505f9294fe5ec53a38665d363d2c5da5b10 (patch) | |
tree | e8eacfffb1db2acd4aabd5186793ee883da043d4 /src/window_gui.h | |
parent | 606648b5d153e5ce3134d8dbc278b2e785f6e67c (diff) | |
download | openttd-7f851505f9294fe5ec53a38665d363d2c5da5b10.tar.xz |
(svn r16778) -Codechange: Split window initialization in a data part and a size/position part.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index e399eb06a..d0343f3d3 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -190,8 +190,8 @@ struct Window : ZeroedMemoryAllocator { }; protected: - void Initialize(int x, int y, int min_width, int min_height, - WindowClass cls, const Widget *widget, NWidgetBase *nwid, int window_number); + void InitializeData(WindowClass cls, const Widget *widget, NWidgetBase *nwid, int window_number); + void InitializePositionSize(int x, int y, int min_width, int min_height); void FindWindowPlacementAndResize(int def_width, int def_height); void FindWindowPlacementAndResize(const WindowDesc *desc); |