mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +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)
|
void HandleEditorResolutionChange(void)
|
||||||
{
|
{
|
||||||
|
int oldRoom = thisRoomNumber;
|
||||||
|
|
||||||
FlushResolutionChange();
|
FlushResolutionChange();
|
||||||
|
|
||||||
RecomputeInterfaceRects();
|
RecomputeInterfaceRects();
|
||||||
@@ -353,6 +355,9 @@ void HandleEditorResolutionChange(void)
|
|||||||
//RefreshScoreboard(wasScoreboardTitleMode);
|
//RefreshScoreboard(wasScoreboardTitleMode);
|
||||||
//DumpScreenOn(&justRoomsRect);
|
//DumpScreenOn(&justRoomsRect);
|
||||||
|
|
||||||
|
CopyRoomToThisRoom(oldRoom);
|
||||||
|
ReflectCurrentRoom(false);
|
||||||
|
|
||||||
if (toolsWindow)
|
if (toolsWindow)
|
||||||
PortabilityLayer::WindowManager::GetInstance()->PutWindowBehind(toolsWindow, PortabilityLayer::WindowManager::GetInstance()->GetPutInFrontSentinel());
|
PortabilityLayer::WindowManager::GetInstance()->PutWindowBehind(toolsWindow, PortabilityLayer::WindowManager::GetInstance()->GetPutInFrontSentinel());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user