Diff for /np2/font/fontdata.c between versions 1.2 and 1.6

version 1.2, 2003/11/15 07:10:02 version 1.6, 2005/02/09 20:11:34
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"
   
   
 const char pc88ankname[]        = "PC88.FNT";  const OEMCHAR pc88ankname[]             = OEMTEXT("PC88.FNT");
 const char pc88knj1name[]       = "KANJI1.ROM";  const OEMCHAR pc88knj1name[]    = OEMTEXT("KANJI1.ROM");
 const char pc88knj2name[]       = "KANJI2.ROM";  const OEMCHAR pc88knj2name[]    = OEMTEXT("KANJI2.ROM");
 const char pc98fontname[]       = "FONT.BMP";  const OEMCHAR pc98fontname[]    = OEMTEXT("FONT.BMP");
 const char v98fontname[]        = "FONT.ROM";  const OEMCHAR v98fontname[]             = OEMTEXT("FONT.ROM");
 const char fm7ankname[]         = "SUBSYS_C.ROM";  const OEMCHAR fm7ankname[]              = OEMTEXT("SUBSYS_C.ROM");
 const char fm7knjname[]         = "KANJI.ROM";  const OEMCHAR fm7knjname[]              = OEMTEXT("KANJI.ROM");
 const char x1ank1name[]         = "FNT0808.X1";  const OEMCHAR x1ank1name[]              = OEMTEXT("FNT0808.X1");
 const char x1ank2name[]         = "FNT0816.X1";  const OEMCHAR x1ank2name[]              = OEMTEXT("FNT0816.X1");
 const char x1knjname[]          = "FNT1616.X1";  const OEMCHAR x1knjname[]               = OEMTEXT("FNT1616.X1");
 const char x68kfontname[]       = "CGROM.DAT";  const OEMCHAR x68kfontname[]    = OEMTEXT("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 = fontrom + 0x21000 + (jish << 4);          p = fontrom + 0x21000 + (jish << 4);
         for (i=0x21; i<0x7f; i++) {          for (i=0x21; i<0x7f; i++) {
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 = fontrom + 0x240c0;          q = fontrom + 0x240c0;
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(fontrom + 0x80000, fontdata_16 + 0*32*16, 32*16);          CopyMemory(fontrom + 0x80000, fontdata_16 + 0*32*16, 32*16);

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


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