summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-05-01 15:32:17 +0000
committerfrosch <frosch@openttd.org>2010-05-01 15:32:17 +0000
commit68c1213efa1cbe051a5c0cf88a552bd741720d96 (patch)
treed2f3f4916f82098cbb0bb4179e4d45fb626d3721 /src/window_gui.h
parent7563432119660a13ce47fc8779cef4da156c4bcd (diff)
downloadopenttd-68c1213efa1cbe051a5c0cf88a552bd741720d96.tar.xz
(svn r19746) -Fix [FS#3675]: Do not recenter usually centered windows when resizing main window or changing language, if they have been moved/resized before.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 147811271..4e64cc5df 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -341,7 +341,7 @@ struct Window : ZeroedMemoryAllocator {
};
protected:
- void InitializeData(WindowClass cls, int window_number, uint32 desc_flags);
+ void InitializeData(const WindowDesc *desc, WindowNumber window_number);
void InitializePositionSize(int x, int y, int min_width, int min_height);
void FindWindowPlacementAndResize(int def_width, int def_height);
@@ -863,6 +863,8 @@ enum WindowFlags {
WF_WHITE_BORDER_ONE = 1 << 13,
WF_WHITE_BORDER_MASK = 1 << 14 | WF_WHITE_BORDER_ONE,
+
+ WF_CENTERED = 1 << 15, ///< Window is centered and shall stay centered after ReInit
};
Window *BringWindowToFrontById(WindowClass cls, WindowNumber number);