Nicolas Cannasse %!s(int64=12) %!d(string=hai) anos
pai
achega
e9aba93390
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;