浏览代码

allow using wor16.asc/wor16.fon with win95 version (useful for Traditional Chinese users).

Wei Mingzhi 7 年之前
父节点
当前提交
32b6ad8e02
共有 1 个文件被更改,包括 13 次插入14 次删除
  1. 13 14
      font.c

+ 13 - 14
font.c

@@ -184,7 +184,6 @@ static void PAL_LoadEmbeddedFont(void)
 
 	fclose(fp);
 
-	PAL_LoadISOFont();
 	_font_height = 15;
 }
 
@@ -359,22 +358,22 @@ PAL_InitFont(
 	const CONFIGURATION* cfg
 )
 {
-	if (!cfg->fIsWIN95 && !cfg->pszMsgFile)
-	{
-		PAL_LoadEmbeddedFont();
-	}
+   if (!cfg->pszMsgFile)
+   {
+      PAL_LoadEmbeddedFont();
+   }
 
-	if (g_TextLib.fUseISOFont)
-	{
-		PAL_LoadISOFont();
-	}
+   if (g_TextLib.fUseISOFont)
+   {
+      PAL_LoadISOFont();
+   }
 
-	if (cfg->pszFontFile)
-	{
-		PAL_LoadUserFont(cfg->pszFontFile);
-	}
+   if (cfg->pszFontFile)
+   {
+      PAL_LoadUserFont(cfg->pszFontFile);
+   }
 
-	return 0;
+   return 0;
 }
 
 void