From f0d0f33c8fa4910040204ea3023cd08b4660f56f Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 25 Jul 2012 21:05:35 +0200 Subject: Fixed UI layout after changing resolution in Setup dialog It was doing the relayout using the unscaled screen dimensions. --- src/gui/setup_video.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2