mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
Keep level editor windows in screen bounds
This commit is contained in:
@@ -40,6 +40,7 @@ void LiveVScrollAction (ControlHandle, short);
|
||||
Boolean QueryNewRoom (void);
|
||||
void CreateNailOffscreen (void);
|
||||
void KillNailOffscreen (void);
|
||||
void KeepWindowInBounds (Window *window);
|
||||
|
||||
Rect nailSrcRect, activeRoomRect, wasActiveRoomRect;
|
||||
Rect mapHScrollRect, mapVScrollRect, mapCenterRect;
|
||||
@@ -430,6 +431,8 @@ void OpenMapWindow (void)
|
||||
CenterMapOnRoom(thisRoom->suite, thisRoom->floor);
|
||||
|
||||
UpdateMapWindow();
|
||||
|
||||
KeepWindowInBounds(mapWindow);
|
||||
}
|
||||
|
||||
UpdateMapCheckmark(true);
|
||||
|
Reference in New Issue
Block a user