summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-18 20:40:30 +0000
committerrubidium <rubidium@openttd.org>2008-05-18 20:40:30 +0000
commita21d3fc63b0b5b936f5d59d9abcd3c1d03ed5bb5 (patch)
tree41abfe9b87f469f713f101ff0e28d4bcf1c50545 /src/window.cpp
parent23b98524800ef62ee4baf02ef9b5ed4823cdad00 (diff)
downloadopenttd-a21d3fc63b0b5b936f5d59d9abcd3c1d03ed5bb5.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.cpp7
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);
}