From b43fdbe52ce3e0e0ed1005170bdc78930046dbca Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Fri, 7 Oct 2022 09:29:02 +0200 Subject: [PATCH] fixed launcher image navigation for HiDPI mode --- src/gui/RomImageWidget.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/RomImageWidget.cxx b/src/gui/RomImageWidget.cxx index da64d5364..4c0d69779 100644 --- a/src/gui/RomImageWidget.cxx +++ b/src/gui/RomImageWidget.cxx @@ -97,7 +97,11 @@ void RomImageWidget::parseProperties(const FSNode& node, bool full) // Create navigation surface myNavSurface = instance().frameBuffer().allocateSurface( _w, myImageHeight); - myNavSurface->setDstRect(Common::Rect(_x, _y, _x + _w, _y + myImageHeight)); + + const uInt32 scale = instance().frameBuffer().hidpiScaleFactor(); + myNavSurface->setDstRect( + Common::Rect(_x * scale, _y * scale, + (_x + _w) * scale, (_y + myImageHeight) * scale)); FBSurface::Attributes& attr = myNavSurface->attributes();