diff options
author | rubidium <rubidium@openttd.org> | 2008-05-11 11:41:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-11 11:41:18 +0000 |
commit | e63137f47f01b9567d9d4d9984ef0c5871d95db4 (patch) | |
tree | 8cd392a540fd2bd013cfe301924f997a30e4d4ba /src/window_gui.h | |
parent | 599bc8942ee862f1dc681bb70bb03faf7bb921f0 (diff) | |
download | openttd-e63137f47f01b9567d9d4d9984ef0c5871d95db4.tar.xz |
(svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 5872c6809..98431ebac 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -279,8 +279,10 @@ private: void HandleWindowEvent(WindowEvent *e); protected: - void Initialize(int x, int y, int min_width, int min_height, int def_width, int def_height, + void Initialize(int x, int y, int min_width, int min_height, WindowProc *proc, WindowClass cls, const Widget *widget, int window_number, void *data); + void FindWindowPlacementAndResize(int def_width, int def_height); + void FindWindowPlacementAndResize(const WindowDesc *desc); public: Window(int x, int y, int width, int height, WindowProc *proc, WindowClass cls, const Widget *widget, void *data = NULL); |