summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-29 20:15:38 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-30 19:53:08 +0300
commite94e85962956eacfcfe67269220cb4cbff7978fd (patch)
tree0161e3b60cd18cfdbb9febfddd7d09d6d65b165e /src/gui/setup_video.cpp
parentd3e7af659bae3ea4cf1037fca81e071acbab31ec (diff)
downloadplus-e94e85962956eacfcfe67269220cb4cbff7978fd.tar.gz
plus-e94e85962956eacfcfe67269220cb4cbff7978fd.tar.bz2
plus-e94e85962956eacfcfe67269220cb4cbff7978fd.tar.xz
plus-e94e85962956eacfcfe67269220cb4cbff7978fd.zip
Allow resize window on the fly from video settings tab.
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 259388fd0..4b56c7cea 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -614,6 +614,7 @@ void Setup_Video::action(const gcn::ActionEvent &event)
// TODO: Find out why the drawing area doesn't resize without a restart.
if (width != mainGraphics->mWidth || height != mainGraphics->mHeight)
{
+#if defined(_WIN32)
if (width < mainGraphics->mWidth || height < mainGraphics->mHeight)
new OkDialog(_("Screen Resolution Changed"),
_("Restart your client for the change to take effect.")
@@ -622,6 +623,9 @@ void Setup_Video::action(const gcn::ActionEvent &event)
else
new OkDialog(_("Screen Resolution Changed"),
_("Restart your client for the change to take effect."));
+#else
+ Client::resize(width, height);
+#endif
}
config.setValue("oldscreen", config.getBoolValue("screen"));