This commit is contained in:
thrust26 2019-05-19 16:20:23 +02:00
parent cdcbf4b079
commit 3d0b11d20f
1 changed files with 3 additions and 1 deletions

View File

@ -128,7 +128,9 @@ bool DialogContainer::baseDialogIsActive() const
int DialogContainer::addDialog(Dialog* d) int DialogContainer::addDialog(Dialog* d)
{ {
const Common::Rect& r = myOSystem.frameBuffer().imageRect(); const Common::Rect& r = myOSystem.frameBuffer().imageRect();
if(uInt32(d->getWidth()) > r.width() || uInt32(d->getHeight()) > r.height()) const uInt32 scale = myOSystem.frameBuffer().hidpiScaleFactor();
if(uInt32(d->getWidth() * scale) > r.width() || uInt32(d->getHeight() * scale) > r.height())
myOSystem.frameBuffer().showMessage( myOSystem.frameBuffer().showMessage(
"Unable to show dialog box; FIX THE CODE"); "Unable to show dialog box; FIX THE CODE");
else else