Diff for /np2/font/font.c between versions 1.6 and 1.9

version 1.6, 2004/02/07 21:23:22 version 1.9, 2005/02/09 20:11:34
Line 8 Line 8
   
   
 #ifndef FONTMEMORYBIND  #ifndef FONTMEMORYBIND
         BYTE    __font[0x84000];          UINT8   __font[0x84000];
 #endif  #endif
   
 static const char fonttmpname[] = "font.tmp";  static const OEMCHAR fonttmpname[] = OEMTEXT("font.tmp");
   
   
 void font_init(void) {  void font_initialize(void) {
   
         BYTE    *p;          UINT8   *p;
         BYTE    *q;          UINT8   *q;
         UINT    i;          UINT    i;
         UINT    j;          UINT    j;
         UINT32  dbit;          UINT32  dbit;
Line 43  void font_init(void) { Line 43  void font_init(void) {
         }          }
 }  }
   
 static BYTE fonttypecheck(const char *fname) {  static UINT8 fonttypecheck(const OEMCHAR *fname) {
   
 const char      *p;  const OEMCHAR   *p;
   
         p = file_getext((char *)fname);          p = file_getext(fname);
         if (!file_cmpname(p, str_bmp)) {          if (!file_cmpname(p, str_bmp)) {
                 return(FONTTYPE_PC98);                  return(FONTTYPE_PC98);
         }          }
         p = file_getname((char *)fname);          p = file_getname(fname);
         if (!file_cmpname(p, v98fontname)) {          if (!file_cmpname(p, v98fontname)) {
                 return(FONTTYPE_V98);                  return(FONTTYPE_V98);
         }          }
Line 75  const char *p; Line 75  const char *p;
         return(FONTTYPE_NONE);          return(FONTTYPE_NONE);
 }  }
   
 BYTE font_load(const char *filename, BOOL force) {  UINT8 font_load(const OEMCHAR *filename, BOOL force) {
   
         UINT    i;          UINT    i;
 const BYTE      *p;  const UINT8     *p;
         BYTE    *q;          UINT8   *q;
         UINT    j;          UINT    j;
         char    fname[MAX_PATH];          OEMCHAR fname[MAX_PATH];
         BYTE    type;          UINT8   type;
         BYTE    loading;          UINT8   loading;
   
         if (filename) {          if (filename) {
                 file_cpyname(fname, filename, sizeof(fname));                  file_cpyname(fname, filename, NELEMENTS(fname));
         }          }
         else {          else {
                 fname[0] = '\0';                  fname[0] = '\0';
Line 146  const BYTE *p; Line 146  const BYTE *p;
         loading = fontv98_read(file_getcd(v98fontname), loading);          loading = fontv98_read(file_getcd(v98fontname), loading);
         loading = fontpc88_read(file_getcd(pc88ankname), loading);          loading = fontpc88_read(file_getcd(pc88ankname), loading);
         if (loading & FONTLOAD_16) {          if (loading & FONTLOAD_16) {
                 file_cpyname(fname, file_getcd(fonttmpname), sizeof(fname));                  file_cpyname(fname, file_getcd(fonttmpname), NELEMENTS(fname));
                 if (file_attr(fname) == -1) {                  if (file_attr(fname) == -1) {
                         makepc98bmp(fname);                          makepc98bmp(fname);
                 }                  }

Removed from v.1.6  
changed lines
  Added in v.1.9


RetroPC.NET-CVS <cvs@retropc.net>