ncannasse 8 年之前
父节点
当前提交
944ef2863f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxd/Pixels.hx

+ 1 - 1
hxd/Pixels.hx

@@ -74,7 +74,7 @@ class Pixels {
 	}
 
 	public function sub( x : Int, y : Int, width : Int, height : Int ) {
-		if( x < 0 || y < 0 || x + width > this.width || y + height >= this.height )
+		if( x < 0 || y < 0 || x + width > this.width || y + height > this.height )
 			throw "Pixels.sub() outside bounds";
 		var out = hxd.impl.Tmp.getBytes(width * height * bpp);
 		var stride = width * bpp;