浏览代码

prevent eventual change in width/height calculation in FontBuild rebuild

Nicolas Cannasse 7 年之前
父节点
当前提交
1aab9e8f1f
共有 1 个文件被更改,包括 5 次插入0 次删除
  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 {