Diff for /np2/font/fontpc98.c between versions 1.2 and 1.5

version 1.2, 2003/11/15 07:10:02 version 1.5, 2005/02/09 20:11:34
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "bmpdata.h"  #include        "bmpdata.h"
 #include        "dosio.h"  #include        "dosio.h"
 #include        "memory.h"  #include        "cpucore.h"
 #include        "font.h"  #include        "font.h"
 #include        "fontdata.h"  #include        "fontdata.h"
   
Line 16 Line 16
 #define BMPDATASIZE             (BMPLINESIZE * BMPHEIGHT)  #define BMPDATASIZE             (BMPLINESIZE * BMPHEIGHT)
   
   
 static void pc98ankcpy(BYTE *dst, const BYTE *src, int from, int to) {  static void pc98ankcpy(UINT8 *dst, const UINT8 *src, int from, int to) {
   
         int             y;          int             y;
 const BYTE      *p;  const UINT8     *p;
         int             ank;          int             ank;
   
         for (ank=from; ank<to; ank++) {          for (ank=from; ank<to; ank++) {
Line 33  const BYTE *p; Line 33  const BYTE *p;
         }          }
 }  }
   
 static void pc98knjcpy(BYTE *dst, const BYTE *src, int from, int to) {  static void pc98knjcpy(UINT8 *dst, const UINT8 *src, int from, int to) {
   
         int             i, j, k;          int             i, j, k;
 const BYTE      *p;  const UINT8     *p;
         BYTE    *q;          UINT8   *q;
   
         for (i=from; i<to; i++) {          for (i=from; i<to; i++) {
                 p = src + BMPDATASIZE + (i << 1) - (FONTYSIZE * BMPLINESIZE);                  p = src + BMPDATASIZE + (i << 1) - (FONTYSIZE * BMPLINESIZE);
Line 53  const BYTE *p; Line 53  const BYTE *p;
         }          }
 }  }
   
 BYTE fontpc98_read(const char *filename, BYTE loading) {  UINT8 fontpc98_read(const OEMCHAR *filename, UINT8 loading) {
   
         FILEH   fh;          FILEH   fh;
         BMPFILE bf;          BMPFILE bf;
         BMPINFO bi;          BMPINFO bi;
         BYTE    *bmpdata;          UINT8   *bmpdata;
         BMPDATA bd;          BMPDATA bd;
         long    fptr;          long    fptr;
   
Line 93  BYTE fontpc98_read(const char *filename, Line 93  BYTE fontpc98_read(const char *filename,
         }          }
   
         // メモリアロケート          // メモリアロケート
         bmpdata = (BYTE *)_MALLOC(BMPDATASIZE, "pc98font");          bmpdata = (UINT8 *)_MALLOC(BMPDATASIZE, "pc98font");
         if (bmpdata == NULL) {          if (bmpdata == NULL) {
                 goto fr98_err2;                  goto fr98_err2;
         }          }

Removed from v.1.2  
changed lines
  Added in v.1.5


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