summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/setup_video.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 4a5e06a4..41c4da76 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -162,11 +162,11 @@ Setup_Video::Setup_Video():
particleDetailLabel = new Label(_("Particle Detail"));
mModeList->setEnabled(true);
+
#ifndef USE_OPENGL
mOpenGLCheckBox->setEnabled(false);
#endif
- mModeList->setSelected(-1);
mAlphaSlider->setValue(mOpacity);
mAlphaSlider->setWidth(90);
@@ -442,9 +442,12 @@ void Setup_Video::action(const gcn::ActionEvent &event)
const int width = atoi(mode.substr(0, mode.find("x")).c_str());
const int height = atoi(mode.substr(mode.find("x") + 1).c_str());
- // TODO: Find out why the drawing area doesn't resize without a restart.
- new OkDialog(_("Screen resolution changed"),
- _("Restart your client for the change to take effect."));
+ if (width != graphics->getWidth() || height != graphics->getHeight())
+ {
+ // TODO: Find out why the drawing area doesn't resize without a restart.
+ new OkDialog(_("Screen resolution changed"),
+ _("Restart your client for the change to take effect."));
+ }
config.setValue("screenwidth", width);
config.setValue("screenheight", height);