mirror of https://github.com/stella-emu/stella.git
fix overscan issue (fixes #576)
This commit is contained in:
parent
d45670cc51
commit
ea829f0cd9
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue