summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-08-14 18:36:11 +0800
committerYohann Ferreira <yohann.ferreira@orange.fr>2011-08-18 09:24:38 +0800
commit76edea844ffd5f03bc1ad44e1e87ce2aafe6041f (patch)
treed8f2473d000d2dee5a61550e3d20286b3307bf26 /src/gui
parent5c5e17c0b200004c6d18a51e2c02fd21d710f04f (diff)
downloadmana-76edea844ffd5f03bc1ad44e1e87ce2aafe6041f.tar.gz
mana-76edea844ffd5f03bc1ad44e1e87ce2aafe6041f.tar.bz2
mana-76edea844ffd5f03bc1ad44e1e87ce2aafe6041f.tar.xz
mana-76edea844ffd5f03bc1ad44e1e87ce2aafe6041f.zip
Removed unnecessary warning about windows that might be moved
Keeping the windows within the visible area is expected behavior, no matter for how long it has been broken. It makes little sense to warn about expected behavior.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/setup_video.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 939cafb5..d72b402b 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -434,17 +434,11 @@ 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.
+ // TODO: Find out why the drawing area doesn't resize without a restart
if (width != graphics->getWidth() || height != graphics->getHeight())
{
- if (width < graphics->getWidth() || height < graphics->getHeight())
- new OkDialog(_("Screen Resolution Changed"),
- _("Restart your client for the change to take effect.")
- + std::string("\n") +
- _("Some windows may be moved to fit the lowered resolution."));
- else
- new OkDialog(_("Screen Resolution Changed"),
- _("Restart your client for the change to take effect."));
+ new OkDialog(_("Screen Resolution Changed"),
+ _("Restart your client for the change to take effect."));
}
config.setValue("screenwidth", width);