Window size fixes on macOS.

Changes for SpartanJ/ecode/#373
This commit is contained in:
Martín Lucas Golini
2024-12-22 14:40:02 -03:00
parent fe63326255
commit 60784d79a6
7 changed files with 42 additions and 18 deletions
+3 -1
View File
@@ -238,7 +238,9 @@ void AppConfig::save( const std::vector<std::string>& recentFiles,
}
editor.colorScheme = colorSchemeName;
windowState.size = win->getLastWindowedSize();
windowState.size = Sys::getPlatformType() == Sys::PlatformType::macOS
? win->getSizeInScreenCoordinates()
: win->getLastWindowedSizeInScreenCoordinates();
windowState.maximized = win->isMaximized();
windowState.displayIndex = win->getCurrentDisplayIndex();
windowState.position = win->getPosition();