|
|
| version 1.3, 2003/12/12 01:04:40 | version 1.6, 2005/02/09 20:11:34 |
|---|---|
| Line 7 | Line 7 |
| #define V98FILESIZE 0x46800 | #define V98FILESIZE 0x46800 |
| static void v98knjcpy(BYTE *dst, const BYTE *src, int from, int to) { | static void v98knjcpy(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; |
| for (i=from; i<to; i++) { | for (i=from; i<to; i++) { |
| p = src + 0x1800 + (0x60 * 32 * (i - 1)); | p = src + 0x1800 + (0x60 * 32 * (i - 1)); |
| Line 27 const BYTE *p; | Line 27 const BYTE *p; |
| } | } |
| } | } |
| BYTE fontv98_read(const char *filename, BYTE loading) { | UINT8 fontv98_read(const OEMCHAR *filename, UINT8 loading) { |
| FILEH fh; | FILEH fh; |
| BYTE *v98fnt; | UINT8 *v98fnt; |
| if (!(loading & FONTLOAD_ALL)) { | if (!(loading & FONTLOAD_ALL)) { |
| goto frv_err1; | goto frv_err1; |
| Line 42 BYTE fontv98_read(const char *filename, | Line 42 BYTE fontv98_read(const char *filename, |
| goto frv_err1; | goto frv_err1; |
| } | } |
| v98fnt = (BYTE *)_MALLOC(V98FILESIZE, "v98font"); | v98fnt = (UINT8 *)_MALLOC(V98FILESIZE, "v98font"); |
| if (v98fnt == NULL) { | if (v98fnt == NULL) { |
| goto frv_err2; | goto frv_err2; |
| } | } |
| Line 55 BYTE fontv98_read(const char *filename, | Line 55 BYTE fontv98_read(const char *filename, |
| // 8x8 フォントを読む必要がある? | // 8x8 フォントを読む必要がある? |
| if (loading & FONT_ANK8) { | if (loading & FONT_ANK8) { |
| loading &= ~FONT_ANK8; | loading &= ~FONT_ANK8; |
| CopyMemory(fontrom + 0x82000, v98fnt, 8*256); | fontdata_ank8store(v98fnt, 0, 256); |
| } | } |
| // 8x16 フォント(〜0x7f)を読む必要がある? | // 8x16 フォント(〜0x7f)を読む必要がある? |
| if (loading & FONT_ANK16a) { | if (loading & FONT_ANK16a) { |