Implemented window size saving/loading for Linux.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
@@ -156,6 +156,7 @@ const void SaveFile::SaveGame(){
|
||||
#pragma endregion
|
||||
|
||||
#pragma region Save System Settings
|
||||
//HACK ALERT! It's possible that on X11 the actual reported window position is offset later when we set it. We will set it now to see if it moves or adjusts, and use that new position instead as the position we save.
|
||||
saveSystemFile["Window Pos"].SetInt(game->GetActualWindowPos().x,0);
|
||||
saveSystemFile["Window Pos"].SetInt(game->GetActualWindowPos().y,1);
|
||||
saveSystemFile["Window Size"].SetInt(game->GetWindowSize().x,0);
|
||||
|
||||
Reference in New Issue
Block a user