From e8290536d8cba7b10ddc60033b7ca29d8347c266 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(+) 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); } } -- cgit v1.2.3-60-g2f50