浏览代码

minor fix

Nicolas Cannasse 12 年之前
父节点
当前提交
e9aba93390
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxd/res/Texture.hx

+ 1 - 1
hxd/res/Texture.hx

@@ -94,7 +94,7 @@ class Texture extends Resource {
 			for( i in 0...(tw - w) * 4 )
 				out.set(p++, 0);
 		}
-		for( i in 0...(th - h) * tw )
+		for( i in 0...(th - h) * tw * 4 )
 			out.set(p++, 0);
 		hxd.impl.Tmp.saveBytes(bmp);
 		return out;