diff options
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); } |