summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-24 19:49:14 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-26 22:18:53 +0100
commit20c224aacc6b9669828f3c7e7b2c19b9b95d90ff (patch)
treea96072e60ab2037fc5138c503d9ec5828ee20906
parent5714b4e6dfde258c688602231f40d093789be003 (diff)
downloadmana-20c224aacc6b9669828f3c7e7b2c19b9b95d90ff.tar.gz
mana-20c224aacc6b9669828f3c7e7b2c19b9b95d90ff.tar.bz2
mana-20c224aacc6b9669828f3c7e7b2c19b9b95d90ff.tar.xz
mana-20c224aacc6b9669828f3c7e7b2c19b9b95d90ff.zip
Remember the window size after resizing
Makes sure that the client starts up again in the same size. Reviewed-by: Erik Schilling
-rw-r--r--src/client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index ab9557fe..c5986de0 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1408,5 +1408,10 @@ void Client::resizeVideo(int width, int height)
mGame->videoResized(width, height);
gui->draw();
+
+ // Since everything appears to have worked out, remember to store the
+ // new size in the configuration.
+ config.setValue("screenwidth", width);
+ config.setValue("screenheight", height);
}
}