diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-29 20:15:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-30 19:53:08 +0300 |
commit | e94e85962956eacfcfe67269220cb4cbff7978fd (patch) | |
tree | 0161e3b60cd18cfdbb9febfddd7d09d6d65b165e | |
parent | d3e7af659bae3ea4cf1037fca81e071acbab31ec (diff) | |
download | plus-e94e85962956eacfcfe67269220cb4cbff7978fd.tar.gz plus-e94e85962956eacfcfe67269220cb4cbff7978fd.tar.bz2 plus-e94e85962956eacfcfe67269220cb4cbff7978fd.tar.xz plus-e94e85962956eacfcfe67269220cb4cbff7978fd.zip |
Allow resize window on the fly from video settings tab.
-rw-r--r-- | src/gui/setup_video.cpp | 4 |
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")); |