Pārlūkot izejas kodu

prevent eventual change in width/height calculation in FontBuild rebuild

Nicolas Cannasse 7 gadi atpakaļ
vecāks
revīzija
1aab9e8f1f
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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 {