mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 02:30:25 +03:00
Window size fixes on macOS.
Changes for SpartanJ/ecode/#373
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user