bstouls 8 年之前
父节点
当前提交
47039145b2
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      h2d/Graphics.hx

+ 2 - 0
h2d/Graphics.hx

@@ -369,6 +369,8 @@ class Graphics extends Drawable {
 			throw "Tile not specified";
 		if( scaleX == null ) scaleX = 1;
 		if( scaleY == null ) scaleY = 1;
+		dx -= tile.x;
+		dy -= tile.y;
 
 		var tex = tile.getTexture();
 		var pixWidth = 1 / tex.width;