mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Keep level editor windows in screen bounds
This commit is contained in:
@@ -61,6 +61,7 @@ void FrameSelectedTool (DrawSurface *);
|
||||
void DrawToolName (DrawSurface *);
|
||||
void DrawToolTiles (DrawSurface *);
|
||||
void SwitchToolModes (short);
|
||||
void KeepWindowInBounds (Window *window);
|
||||
|
||||
|
||||
Rect toolsWindowRect, toolSrcRect, toolTextRect;
|
||||
@@ -350,6 +351,8 @@ void OpenToolsWindow (void)
|
||||
|
||||
SwitchToolModes(toolMode);
|
||||
toolSelected = kSelectTool;
|
||||
|
||||
KeepWindowInBounds(toolsWindow);
|
||||
}
|
||||
|
||||
UpdateToolsCheckmark(true);
|
||||
|
||||
Reference in New Issue
Block a user