mirror of https://github.com/stella-emu/stella.git
fixed crash when display directory dialogs on launcher mode
This commit is contained in:
parent
1c10e590af
commit
bbfe2cb49b
|
@ -791,8 +791,13 @@ Widget* Dialog::TabFocus::getNewFocus()
|
|||
bool Dialog::getResizableBounds(uInt32& w, uInt32& h) const
|
||||
{
|
||||
const GUI::Rect& r = instance().frameBuffer().imageRect();
|
||||
bool ntsc = true;
|
||||
|
||||
if(instance().hasConsole())
|
||||
{
|
||||
ntsc = instance().console().about().InitialFrameRate == "60";
|
||||
}
|
||||
|
||||
bool ntsc = instance().console().about().InitialFrameRate == "60";
|
||||
uInt32 aspect = instance().settings().getInt(ntsc ?"tia.aspectn" : "tia.aspectp");
|
||||
|
||||
if(r.width() <= FrameBuffer::kFBMinW || r.height() <= FrameBuffer::kFBMinH)
|
||||
|
|
Loading…
Reference in New Issue