mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-19 21:10:12 +02:00
Fix images with custom scaling in xBRZ mode
This commit is contained in:
parent
0bbc2bce33
commit
a2bac260e7
@ -47,7 +47,7 @@ void ImageScaled::scaleInteger(int factor)
|
||||
void ImageScaled::scaleTo(const Point & size)
|
||||
{
|
||||
if (body)
|
||||
body = body->scaleTo(size, nullptr); // FIXME: adjust for scaling
|
||||
body = body->scaleTo(size * GH.screenHandler().getScalingFactor(), nullptr);
|
||||
}
|
||||
|
||||
void ImageScaled::exportBitmap(const boost::filesystem::path &path) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user