Browse Source

Merge pull request #5287 from Laserlicht/xbrz_fix

[1.6.x] fix canvas fillTexture
Ivan Savenko 10 tháng trước cách đây
mục cha
commit
364286e1b9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      client/render/Canvas.cpp

+ 1 - 1
client/render/Canvas.cpp

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