From 7853eb16365a02969d08730c2688dfbb7811ef82 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Jun 2011 23:53:08 +0300 Subject: If client cant set video mode, it fall back to last mode. --- src/gui/setup_video.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/setup_video.cpp') diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index d007bc275..db2dabcd1 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -775,6 +775,9 @@ void Setup_Video::action(const gcn::ActionEvent &event) _("Restart your client for the change to take effect.")); } + config.setValue("oldscreen", config.getBoolValue("screen")); + config.setValue("oldscreenwidth", graphics->getWidth()); + config.setValue("oldscreenheight", graphics->getHeight()); config.setValue("screenwidth", width); config.setValue("screenheight", height); } -- cgit v1.2.3-70-g09d2