|
|
| version 1.3, 2003/12/12 01:04:40 | version 1.5, 2005/02/07 14:46:10 |
|---|---|
| Line 6 | Line 6 |
| #include "fontdata.h" | #include "fontdata.h" |
| static void x1knjcpy(BYTE *dst, const BYTE *src, int from, int to) { | static void x1knjcpy(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; |
| UINT sjis; | UINT sjis; |
| for (i=from; i<to; i++) { | for (i=from; i<to; i++) { |
| Line 40 const BYTE *p; | Line 40 const BYTE *p; |
| } | } |
| } | } |
| BYTE fontx1_read(const char *filename, BYTE loading) { | UINT8 fontx1_read(const char *filename, UINT8 loading) { |
| FILEH fh; | FILEH fh; |
| BYTE *work; | UINT8 *work; |
| char fname[MAX_PATH]; | char fname[MAX_PATH]; |
| work = (BYTE *)_MALLOC(306176, "x1font"); | work = (UINT8 *)_MALLOC(306176, "x1font"); |
| if (work == NULL) { | if (work == NULL) { |
| goto frx1_err1; | goto frx1_err1; |
| } | } |
| Line 60 BYTE fontx1_read(const char *filename, B | Line 60 BYTE fontx1_read(const char *filename, B |
| if (fh != FILEH_INVALID) { | if (fh != FILEH_INVALID) { |
| if (file_read(fh, work, 2048) == 2048) { | if (file_read(fh, work, 2048) == 2048) { |
| loading &= ~FONT_ANK8; | loading &= ~FONT_ANK8; |
| CopyMemory(fontrom + 0x82100, work + 0x100, 0x60*8); | fontdata_ank8store(work + 0x100, 0x20, 0x60); |
| CopyMemory(fontrom + 0x82500, work + 0x500, 0x40*8); | fontdata_ank8store(work + 0x500, 0xa0, 0x40); |
| } | } |
| file_close(fh); | file_close(fh); |
| } | } |