From e94e85962956eacfcfe67269220cb4cbff7978fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Jan 2012 20:15:38 +0300 Subject: Allow resize window on the fly from video settings tab. --- src/gui/setup_video.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui') 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")); -- cgit v1.2.3-60-g2f50