From 68c1213efa1cbe051a5c0cf88a552bd741720d96 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 1 May 2010 15:32:17 +0000 Subject: (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. --- src/window_gui.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/window_gui.h') 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); -- cgit v1.2.3-54-g00ecf