summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-24 19:49:14 +0100
committerAndrei Karas <akaras@inbox.ru>2012-01-30 19:53:07 +0300
commite8290536d8cba7b10ddc60033b7ca29d8347c266 (patch)
treed8f67990c369831c9a0a68ea9901bf8584137bde /src/client.cpp
parent8292b80eac900ec5dd75d184063b7b35934e800a (diff)
downloadplus-e8290536d8cba7b10ddc60033b7ca29d8347c266.tar.gz
plus-e8290536d8cba7b10ddc60033b7ca29d8347c266.tar.bz2
plus-e8290536d8cba7b10ddc60033b7ca29d8347c266.tar.xz
plus-e8290536d8cba7b10ddc60033b7ca29d8347c266.zip
Remember the window size after resizing
Makes sure that the client starts up again in the same size. Reviewed-by: Erik Schilling
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index de874c8a8..0a47b2bee 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -2380,5 +2380,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);
}
}