diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-21 23:53:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-21 23:53:08 +0300 |
commit | 7853eb16365a02969d08730c2688dfbb7811ef82 (patch) | |
tree | cfc58740afca1b3a4070bf7e4c1e068cb4fcc68f /src/gui/setup_video.cpp | |
parent | 109a9a97e598f10e673fc235000bcec415fe047d (diff) | |
download | manaplus-7853eb16365a02969d08730c2688dfbb7811ef82.tar.gz manaplus-7853eb16365a02969d08730c2688dfbb7811ef82.tar.bz2 manaplus-7853eb16365a02969d08730c2688dfbb7811ef82.tar.xz manaplus-7853eb16365a02969d08730c2688dfbb7811ef82.zip |
If client cant set video mode, it fall back to last mode.
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r-- | src/gui/setup_video.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |