(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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user