fixed launcher image navigation for HiDPI mode

This commit is contained in:
Thomas Jentzsch 2022-10-07 09:29:02 +02:00
parent 744532fbba
commit b43fdbe52c
1 changed files with 5 additions and 1 deletions

View File

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