From 20c224aacc6b9669828f3c7e7b2c19b9b95d90ff Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 24 Jan 2012 19:49:14 +0100 Subject: Remember the window size after resizing Makes sure that the client starts up again in the same size. Reviewed-by: Erik Schilling --- src/client.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); } } -- cgit v1.2.3-70-g09d2