Preserve active room on editor resolution change.

This commit is contained in:
elasota
2021-04-27 01:33:23 -04:00
parent 0c43370353
commit 2991a7490e

View File

@@ -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());