From 3d0b11d20faff801bdfdb493bc349d4cc5ee9adb Mon Sep 17 00:00:00 2001 From: thrust26 Date: Sun, 19 May 2019 16:20:23 +0200 Subject: [PATCH] fix #479 --- src/gui/DialogContainer.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/DialogContainer.cxx b/src/gui/DialogContainer.cxx index f4497a076..0ce0332bb 100644 --- a/src/gui/DialogContainer.cxx +++ b/src/gui/DialogContainer.cxx @@ -128,7 +128,9 @@ bool DialogContainer::baseDialogIsActive() const int DialogContainer::addDialog(Dialog* d) { 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( "Unable to show dialog box; FIX THE CODE"); else