Permalink
Browse files

PC-98: Load either ANEX86.BMP or FREECG98.BMP. Prefer ANEX86.BMP for

accuracy.
  • Loading branch information...
joncampbell123 committed Dec 14, 2017
1 parent 5540838 commit 79ba0ba353117b1b6c37618a5a759478ade59333
Showing with 12 additions and 4 deletions.
  1. +12 −4 src/ints/int10.cpp
@@ -820,10 +820,18 @@ bool Load_Anex86_Font(void) {
unsigned int bmp_ofs;
FILE *fp;
fp = fopen("anex86.bmp","rb");
/* ANEX86.BMP accurate dump of actual font */
fp = fopen("anex86.bmp","rb");
if (!fp) fp = fopen("ANEX86.bmp","rb");
if (!fp) fp = fopen("ANEX86.BMP","rb");
/* FREECG98.BMP free open source generated copy from system fonts */
if (!fp) fp = fopen("freecg98.bmp","rb");
if (!fp) fp = fopen("FREECG98.bmp","rb");
if (!fp) fp = fopen("FREECG98.BMP","rb");
if (!fp) {
LOG_MSG("PC-98 font loading: ANEX86.BMP not found");
LOG_MSG("PC-98 font loading: neither ANEX86.BMP nor FREECG98.BMP found");
return false;
}
@@ -872,11 +880,11 @@ bool Load_Anex86_Font(void) {
}
}
LOG_MSG("ANEX86.BMP font loaded");
LOG_MSG("ANEX86.BMP/FREECG98.BMP font loaded");
fclose(fp);
return true;
fail:
LOG_MSG("ANEX86.BMP invalid, ignoring");
LOG_MSG("ANEX86.BMP/FREECG98.BMP invalid, ignoring");
fclose(fp);
return false;
}

0 comments on commit 79ba0ba

Please sign in to comment.