mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Preserve active room on editor resolution change.
This commit is contained in:
@@ -339,6 +339,8 @@ void KeepWindowInBounds(Window *window)
|
||||
|
||||
void HandleEditorResolutionChange(void)
|
||||
{
|
||||
int oldRoom = thisRoomNumber;
|
||||
|
||||
FlushResolutionChange();
|
||||
|
||||
RecomputeInterfaceRects();
|
||||
@@ -353,6 +355,9 @@ void HandleEditorResolutionChange(void)
|
||||
//RefreshScoreboard(wasScoreboardTitleMode);
|
||||
//DumpScreenOn(&justRoomsRect);
|
||||
|
||||
CopyRoomToThisRoom(oldRoom);
|
||||
ReflectCurrentRoom(false);
|
||||
|
||||
if (toolsWindow)
|
||||
PortabilityLayer::WindowManager::GetInstance()->PutWindowBehind(toolsWindow, PortabilityLayer::WindowManager::GetInstance()->GetPutInFrontSentinel());
|
||||
|
||||
|
Reference in New Issue
Block a user