diff options
author | rubidium <rubidium@openttd.org> | 2008-05-18 20:40:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-18 20:40:30 +0000 |
commit | 6da56ee87ed7131b0c8e47d8924e5305ea8c0dd2 (patch) | |
tree | 41abfe9b87f469f713f101ff0e28d4bcf1c50545 /src/window.cpp | |
parent | 9aa69db2e6352bf81df189c70ba2719bbdc38c31 (diff) | |
download | openttd-6da56ee87ed7131b0c8e47d8924e5305ea8c0dd2.tar.xz |
(svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors.
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/window.cpp b/src/window.cpp index 5e6a2f1b9..4f5e1cc7a 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -963,16 +963,13 @@ void Window::FindWindowPlacementAndResize(const WindowDesc *desc) * @param y offset in pixels from the top of the screen * @param width width in pixels of the window * @param height height in pixels of the window - * @param *proc see WindowProc function to call when any messages/updates happen to the window * @param cls see WindowClass class of the window, used for identification and grouping * @param *widget see Widget pointer to the window layout and various elements * @return Window pointer of the newly created window */ -Window::Window(int x, int y, int width, int height, WindowProc *proc, WindowClass cls, const Widget *widget) +Window::Window(int x, int y, int width, int height, WindowClass cls, const Widget *widget) { - this->Initialize(x, y, width, height, proc, cls, widget, 0); - - if (proc != NULL) this->FindWindowPlacementAndResize(width, height); + this->Initialize(x, y, width, height, NULL, cls, widget, 0); } |