Implemented window size saving/loading for Linux.

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
2024-02-19 05:41:14 -06:00
parent 5d7b342c51
commit 92f488986e
2 changed files with 32 additions and 3 deletions
+1
View File
@@ -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);