|
|
| version 1.3, 2003/10/21 16:27:54 | version 1.6, 2004/02/07 21:23:22 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "strres.h" | #include "strres.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" |
| #include "fontmake.h" | #include "fontmake.h" |
| Line 22 void font_init(void) { | Line 22 void font_init(void) { |
| UINT j; | UINT j; |
| UINT32 dbit; | UINT32 dbit; |
| ZeroMemory(font, sizeof(font)); | ZeroMemory(fontrom, sizeof(fontrom)); |
| p = font + 0x81000; | p = fontrom + 0x81000; |
| q = font + 0x82800; | q = fontrom + 0x82000; |
| for (i=0; i<256; i++) { | for (i=0; i<256; i++) { |
| q += 8; | |
| for (j=0; j<4; j++) { | for (j=0; j<4; j++) { |
| dbit = 0; | dbit = 0; |
| if (i & (0x01 << j)) { | if (i & (0x01 << j)) { |
| Line 77 const char *p; | Line 78 const char *p; |
| BYTE font_load(const char *filename, BOOL force) { | BYTE font_load(const char *filename, BOOL force) { |
| UINT i; | UINT i; |
| BYTE *q; | |
| const BYTE *p; | const BYTE *p; |
| BYTE *q; | |
| UINT j; | UINT j; |
| char fname[MAX_PATH]; | char fname[MAX_PATH]; |
| BYTE type; | BYTE type; |
| Line 97 const BYTE *p; | Line 98 const BYTE *p; |
| // 外字: font[??560-??57f], font[??d60-??d7f] は削らないように… | // 外字: font[??560-??57f], font[??d60-??d7f] は削らないように… |
| for (i=0; i<0x80; i++) { | for (i=0; i<0x80; i++) { |
| q = font + (i << 12); | q = fontrom + (i << 12); |
| ZeroMemory(q + 0x000, 0x0560 - 0x000); | ZeroMemory(q + 0x000, 0x0560 - 0x000); |
| ZeroMemory(q + 0x580, 0x0d60 - 0x580); | ZeroMemory(q + 0x580, 0x0d60 - 0x580); |
| ZeroMemory(q + 0xd80, 0x1000 - 0xd80); | ZeroMemory(q + 0xd80, 0x1000 - 0xd80); |
| } | } |
| CopyMemory(font + 0x82000, fontdata_8, 0x800); | fontdata_ank8store(fontdata_8, 0, 256); |
| p = fontdata_8; | p = fontdata_8; |
| q = font + 0x80000; | q = fontrom + 0x80000; |
| for (i=0; i<256; i++) { | for (i=0; i<256; i++) { |
| for (j=0; j<8; j++) { | for (j=0; j<8; j++) { |
| q[0] = p[0]; | q[0] = p[0]; |