Przeglądaj źródła

prevent eventual change in width/height calculation in FontBuild rebuild

Nicolas Cannasse 7 lat temu
rodzic
commit
1aab9e8f1f
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      hxd/res/FontBuilder.hx

+ 5 - 0
hxd/res/FontBuilder.hx

@@ -161,6 +161,11 @@ class FontBuilder {
 		var height = width;
 		while( width * height >> 1 > surf )
 			height >>= 1;
+			
+		if( innerTex != null ) {
+			width = innerTex.width;
+			height = innerTex.height;
+		}
 
 		var all, done;
 		do {