diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-01-24 19:49:14 +0100 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-30 19:53:07 +0300 |
commit | e8290536d8cba7b10ddc60033b7ca29d8347c266 (patch) | |
tree | d8f67990c369831c9a0a68ea9901bf8584137bde /src | |
parent | 8292b80eac900ec5dd75d184063b7b35934e800a (diff) | |
download | manaplus-e8290536d8cba7b10ddc60033b7ca29d8347c266.tar.gz manaplus-e8290536d8cba7b10ddc60033b7ca29d8347c266.tar.bz2 manaplus-e8290536d8cba7b10ddc60033b7ca29d8347c266.tar.xz manaplus-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')
-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 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); } } |