Browse Source

minor fix

Nicolas Cannasse 12 years ago
parent
commit
e9aba93390
1 changed files with 1 additions and 1 deletions
  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;