--- np2/font/font.c 2003/10/16 17:58:31 1.1.1.1 +++ np2/font/font.c 2003/12/12 01:04:40 1.5 @@ -1,7 +1,7 @@ #include "compiler.h" #include "strres.h" #include "dosio.h" -#include "memory.h" +#include "cpucore.h" #include "font.h" #include "fontdata.h" #include "fontmake.h" @@ -22,9 +22,9 @@ void font_init(void) { UINT j; UINT32 dbit; - ZeroMemory(font, sizeof(font)); - p = font + 0x81000; - q = font + 0x82800; + ZeroMemory(fontrom, sizeof(fontrom)); + p = fontrom + 0x81000; + q = fontrom + 0x82800; for (i=0; i<256; i++) { for (j=0; j<4; j++) { dbit = 0; @@ -85,7 +85,7 @@ const BYTE *p; BYTE loading; if (filename) { - milstr_ncpy(fname, filename, sizeof(fname)); + file_cpyname(fname, filename, sizeof(fname)); } else { fname[0] = '\0'; @@ -97,15 +97,15 @@ const BYTE *p; // 外字: font[??560-??57f], font[??d60-??d7f] は削らないように… for (i=0; i<0x80; i++) { - q = font + (i << 12); + q = fontrom + (i << 12); ZeroMemory(q + 0x000, 0x0560 - 0x000); ZeroMemory(q + 0x580, 0x0d60 - 0x580); ZeroMemory(q + 0xd80, 0x1000 - 0xd80); } - CopyMemory(font + 0x82000, fontdata_8, 0x800); + CopyMemory(fontrom + 0x82000, fontdata_8, 0x800); p = fontdata_8; - q = font + 0x80000; + q = fontrom + 0x80000; for (i=0; i<256; i++) { for (j=0; j<8; j++) { q[0] = p[0]; @@ -145,8 +145,8 @@ const BYTE *p; loading = fontv98_read(file_getcd(v98fontname), loading); loading = fontpc88_read(file_getcd(pc88ankname), loading); if (loading & FONTLOAD_16) { - milstr_ncpy(fname, file_getcd(fonttmpname), sizeof(fname)); - if (file_attr_c(fname) == -1) { + file_cpyname(fname, file_getcd(fonttmpname), sizeof(fname)); + if (file_attr(fname) == -1) { makepc98bmp(fname); } loading = fontpc98_read(fname, loading);