Diff for /np2/font/fontdata.c between versions 1.1 and 1.5

version 1.1, 2003/10/16 17:58:35 version 1.5, 2005/02/07 14:46:10
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "memory.h"  #include        "cpucore.h"
 #include        "font.h"  #include        "font.h"
 #include        "fontdata.h"  #include        "fontdata.h"
 #include        "fontdata.res"  #include        "fontdata.res"
Line 18  const char x1knjname[]  = "FNT1616.X1"; Line 18  const char x1knjname[]  = "FNT1616.X1";
 const char x68kfontname[]       = "CGROM.DAT";  const char x68kfontname[]       = "CGROM.DAT";
   
   
 static void patch29(UINT jish, const BYTE *src) {  static void patch29(UINT jish, const UINT8 *src) {
   
         UINT    i;          UINT    i;
         BYTE    *p;          UINT8   *p;
   
         p = font + 0x21000 + (jish << 4);          p = fontrom + 0x21000 + (jish << 4);
         for (i=0x21; i<0x7f; i++) {          for (i=0x21; i<0x7f; i++) {
                 CopyMemory(p, src, 16);                  CopyMemory(p, src, 16);
                 p += 0x1000;                  p += 0x1000;
Line 35  static void patch2c(void) { Line 35  static void patch2c(void) {
   
         UINT    i;          UINT    i;
         UINT    j;          UINT    j;
 const BYTE      *p;  const UINT8     *p;
         BYTE    *q;          UINT8   *q;
   
         p = fontdata_2c;          p = fontdata_2c;
         q = font + 0x240c0;          q = fontrom + 0x240c0;
         for (i=0x24; i<0x70; i++) {          for (i=0x24; i<0x70; i++) {
                 for (j=0; j<16; j++) {                  for (j=0; j<16; j++) {
                         q[j + 0x800] = p[0];                          q[j + 0x800] = p[0];
Line 53  const BYTE *p; Line 53  const BYTE *p;
   
 // ----  // ----
   
   void fontdata_ank8store(const UINT8 *ptr, UINT pos, UINT cnt) {
   
           UINT8   *dat;
   
           dat = fontrom + 0x82000 + (pos * 16);
           while(cnt--) {
                   CopyMemory(dat, ptr, 8);
                   dat += 16;
                   ptr += 8;
           }
   }
   
 void fontdata_patch16a(void) {  void fontdata_patch16a(void) {
   
         CopyMemory(font + 0x80000, fontdata_16 + 0*32*16, 32*16);          CopyMemory(fontrom + 0x80000, fontdata_16 + 0*32*16, 32*16);
 }  }
   
 void fontdata_patch16b(void) {  void fontdata_patch16b(void) {
   
         CopyMemory(font + 0x80800, fontdata_16 + 1*32*16, 32*16);          CopyMemory(fontrom + 0x80800, fontdata_16 + 1*32*16, 32*16);
         CopyMemory(font + 0x80e00, fontdata_16 + 2*32*16, 32*16);          CopyMemory(fontrom + 0x80e00, fontdata_16 + 2*32*16, 32*16);
 }  }
   
 void fontdata_patchjis(void) {  void fontdata_patchjis(void) {

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


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