1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

fix canvas fillTexture

This commit is contained in:
Laserlicht
2025-01-17 01:23:14 +01:00
committed by GitHub
parent ffc118f605
commit 604c466ebd

View File

@@ -218,7 +218,7 @@ void Canvas::fillTexture(const std::shared_ptr<IImage>& image)
for (int y=0; y < surface->h; y+= imageArea.h)
{
for (int x=0; x < surface->w; x+= imageArea.w)
image->draw(surface, Point(renderArea.x + x, renderArea.y + y));
image->draw(surface, Point(renderArea.x + x * getScalingFactor(), renderArea.y + y * getScalingFactor()));
}
}