From 79940c14ca8e7412e7ad7cfcf79d779c8eba1526 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Thu, 13 Feb 2020 20:56:56 +0100 Subject: [PATCH] fix overscan issue (fixes #576) --- src/gui/Launcher.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/Launcher.cxx b/src/gui/Launcher.cxx index b9f75515d..eb1324f9f 100644 --- a/src/gui/Launcher.cxx +++ b/src/gui/Launcher.cxx @@ -38,11 +38,14 @@ Launcher::Launcher(OSystem& osystem) // We check those bounds now myWidth = std::max(myWidth, FBMinimum::Width); myHeight = std::max(myHeight, FBMinimum::Height); + myWidth = std::min(myWidth, d.w); + myHeight = std::min(myHeight, d.h); + // do not include overscan when launcher saving size + myOSystem.settings().setValue("launcherres", Common::Size(myWidth, myHeight)); + // now make overscan effective myWidth = std::min(myWidth, uInt32(d.w * overscan)); myHeight = std::min(myHeight, uInt32(d.h * overscan)); - myOSystem.settings().setValue("launcherres", Common::Size(myWidth, myHeight)); - myBaseDialog = new LauncherDialog(myOSystem, *this, 0, 0, myWidth, myHeight); }