From 3ff2538f8dda2f16e2a536ffc1d994374260d6f2 Mon Sep 17 00:00:00 2001 From: Bertram Date: Thu, 30 Jul 2009 23:28:18 +0200 Subject: Fixed windows loss when changing to a lowered resolution. (Mantis 776) --- src/gui/widgets/window.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/window.h') diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index 153602ba..b3ef3fdc 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -269,7 +269,7 @@ class Window : public gcn::Window, gcn::WidgetListener int defaultWidth, int defaultHeight); /** - * Set the default win pos and size tot he current ones. + * Set the default win pos and size to the current ones. */ void setDefaultSize(); @@ -346,6 +346,13 @@ class Window : public gcn::Window, gcn::WidgetListener LEFT = 0x08 }; + /** + * Check if the window is off-screen and then move it to be visible + * again. This is internally used by loadWindowState + * and setVisible(true) members. + */ + void checkIfIsOffScreen(bool partially = true, bool entirely = true); + /** * Determines if the mouse is in a resize area and returns appropriate * resize handles. Also initializes drag offset in case the resize -- cgit v1.2.3-70-g09d2