fixed crash when display directory dialogs on launcher mode

This commit is contained in:
thrust26 2018-05-23 14:35:49 +02:00
parent 1c10e590af
commit bbfe2cb49b
1 changed files with 6 additions and 1 deletions

View File

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