|
|
| version 1.5, 2005/02/09 20:11:34 | version 1.8, 2006/12/23 12:49:22 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "bmpdata.h" | #include "bmpdata.h" |
| #include "parts.h" | #include "parts.h" |
| #if defined(OSLANG_UTF8) || defined(OSLANG_UCS2) | #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2) |
| #include "oemtext.h" | #include "oemtext.h" |
| #endif | #endif |
| #include "dosio.h" | #include "dosio.h" |
| Line 141 const UINT8 *p; | Line 141 const UINT8 *p; |
| int height; | int height; |
| UINT8 bit; | UINT8 bit; |
| int i; | int i; |
| #if defined(OSLANG_UTF8) || defined(OSLANG_UCS2) | #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2) |
| OEMCHAR oemwork[4]; | OEMCHAR oemwork[4]; |
| #endif | #endif |
| Line 149 const UINT8 *p; | Line 149 const UINT8 *p; |
| work[1] = '\0'; | work[1] = '\0'; |
| while(from < to) { | while(from < to) { |
| work[0] = (char)from; | work[0] = (char)from; |
| #if defined(OSLANG_UTF8) || defined(OSLANG_UCS2) | #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2) |
| oemtext_sjis2oem(oemwork, NELEMENTS(oemwork), work, -1); | oemtext_sjistooem(oemwork, NELEMENTS(oemwork), work, -1); |
| dat = fontmng_get(fnt, oemwork); | dat = fontmng_get(fnt, oemwork); |
| #else | #else |
| dat = fontmng_get(fnt, work); | dat = fontmng_get(fnt, work); |
| Line 209 const UINT8 *p; | Line 209 const UINT8 *p; |
| int height; | int height; |
| UINT16 bit; | UINT16 bit; |
| int i; | int i; |
| #if defined(OSLANG_UTF8) || defined(OSLANG_UCS2) | #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2) |
| OEMCHAR oemwork[4]; | OEMCHAR oemwork[4]; |
| #endif | #endif |
| Line 224 const UINT8 *p; | Line 224 const UINT8 *p; |
| sjis = jis2sjis(jis); | sjis = jis2sjis(jis); |
| work[0] = (UINT8)(sjis >> 8); | work[0] = (UINT8)(sjis >> 8); |
| work[1] = (UINT8)sjis; | work[1] = (UINT8)sjis; |
| #if defined(OSLANG_UTF8) || defined(OSLANG_UCS2) | #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2) |
| oemtext_sjis2oem(oemwork, NELEMENTS(oemwork), work, -1); | oemtext_sjistooem(oemwork, NELEMENTS(oemwork), work, -1); |
| dat = fontmng_get(fnt, oemwork); | dat = fontmng_get(fnt, oemwork); |
| #else | #else |
| dat = fontmng_get(fnt, work); | dat = fontmng_get(fnt, work); |
| Line 292 void makepc98bmp(const OEMCHAR *filename | Line 292 void makepc98bmp(const OEMCHAR *filename |
| FILEH fh; | FILEH fh; |
| BOOL r; | BOOL r; |
| #if defined(FDAT_SHIFTJIS) | |
| fnt = fontmng_create(16, FDAT_SHIFTJIS, NULL); | |
| #else | |
| fnt = fontmng_create(16, 0, NULL); | fnt = fontmng_create(16, 0, NULL); |
| #endif | |
| if (fnt == NULL) { | if (fnt == NULL) { |
| goto mfnt_err1; | goto mfnt_err1; |
| } | } |