浏览代码

fixed setTilePosY

Nicolas Cannasse 5 年之前
父节点
当前提交
958762e883
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h2d/domkit/BaseComponents.hx

+ 1 - 1
h2d/domkit/BaseComponents.hx

@@ -542,7 +542,7 @@ class BitmapComp extends DrawableComp implements domkit.Component.ComponentDecl<
 
 	static function setTilePosY( t : h2d.Tile, y : Int ) {
 		if( t == null ) return;
-		t.setPosition(t.iy, y * t.iheight);
+		t.setPosition(t.ix, y * t.iheight);
 	}
 
 	static function set_width( o : h2d.Bitmap, v : Null<Float> ) {