diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-01-24 19:49:14 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-01-26 22:18:53 +0100 |
commit | 20c224aacc6b9669828f3c7e7b2c19b9b95d90ff (patch) | |
tree | a96072e60ab2037fc5138c503d9ec5828ee20906 | |
parent | 5714b4e6dfde258c688602231f40d093789be003 (diff) | |
download | Mana-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.cpp | 5 |
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); } } |