fix overscan issue (fixes #576)

This commit is contained in:
thrust26 2020-02-13 20:56:56 +01:00
parent d45670cc51
commit ea829f0cd9
1 changed files with 5 additions and 2 deletions

View File

@ -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);
}