summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-25 21:05:35 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-25 21:05:35 +0200
commitf0d0f33c8fa4910040204ea3023cd08b4660f56f (patch)
tree69be5cbaaffbc735fc45b22eb36036a1c8a0fca6 /src
parent517747b402b92558e98918db8d13b1ae6cf89cae (diff)
downloadmana-client-f0d0f33c8fa4910040204ea3023cd08b4660f56f.tar.gz
mana-client-f0d0f33c8fa4910040204ea3023cd08b4660f56f.tar.bz2
mana-client-f0d0f33c8fa4910040204ea3023cd08b4660f56f.tar.xz
mana-client-f0d0f33c8fa4910040204ea3023cd08b4660f56f.zip
Fixed UI layout after changing resolution in Setup dialog
It was doing the relayout using the unscaled screen dimensions.
Diffstat (limited to 'src')
-rw-r--r--src/gui/setup_video.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index fef918b5..fecfcdcb 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -267,7 +267,8 @@ void Setup_Video::apply()
}
else
{
- Client::instance()->videoResized(screenWidth, screenHeight);
+ Client::instance()->videoResized(graphics->getWidth(),
+ graphics->getHeight());
config.setValue("screen", fullscreen);
config.setValue("screenwidth", screenWidth);