mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix loading of pre-scaled assets
This commit is contained in:
@@ -33,7 +33,7 @@ void CanvasImage::draw(SDL_Surface * where, const Point & pos, const Rect * src,
|
||||
|
||||
void CanvasImage::scaleTo(const Point & size, EScalingAlgorithm algorithm)
|
||||
{
|
||||
Point scaledSize = scalingPolicy == CanvasScalingPolicy::IGNORE ? size : (size * GH.screenHandler().getScalingFactor());
|
||||
Point scaledSize = size * GH.screenHandler().getScalingFactor();
|
||||
|
||||
auto newSurface = CSDL_Ext::scaleSurface(surface, scaledSize.x, scaledSize.y, algorithm);
|
||||
SDL_FreeSurface(surface);
|
||||
|
||||
Reference in New Issue
Block a user