git repos / blockattack-game

commit e78f942b

Poul Sander · 2019-04-24 17:54
e78f942b39958fafe18b486571e58f34a8b8b278 patch · browse files
parent 8b1ee612ad518578516510fd488c13dd25b31d75

Do not write the fullscreen size to config file

Changed files

M source/code/main.cpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index f924a2d..b5d7da6 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -1201,7 +1201,7 @@ int main(int argc, char* argv[]) {
configSettings->setString("player1name", globalData.player1name);
configSettings->setString("player2name", globalData.player2name);
- {
+ if (!globalData.bFullscreen){
//Store physical height of window
int height = 0;
SDL_GetWindowSize(sdlWindow, nullptr, &height);