瀏覽代碼

fix canvas fillTexture

Laserlicht 9 月之前
父節點
當前提交
604c466ebd
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()));
 	}
 }