diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-07-25 21:05:35 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-07-25 21:05:35 +0200 |
commit | f0d0f33c8fa4910040204ea3023cd08b4660f56f (patch) | |
tree | 69be5cbaaffbc735fc45b22eb36036a1c8a0fca6 | |
parent | 517747b402b92558e98918db8d13b1ae6cf89cae (diff) | |
download | mana-f0d0f33c8fa4910040204ea3023cd08b4660f56f.tar.gz mana-f0d0f33c8fa4910040204ea3023cd08b4660f56f.tar.bz2 mana-f0d0f33c8fa4910040204ea3023cd08b4660f56f.tar.xz mana-f0d0f33c8fa4910040204ea3023cd08b4660f56f.zip |
Fixed UI layout after changing resolution in Setup dialog
It was doing the relayout using the unscaled screen dimensions.
-rw-r--r-- | src/gui/setup_video.cpp | 3 |
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); |