|
|
| version 1.6, 2005/02/12 12:13:57 | version 1.7, 2005/04/01 15:06:30 |
|---|---|
| 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_sjistooem(oemwork, NELEMENTS(oemwork), work, -1); | oemtext_sjistooem(oemwork, NELEMENTS(oemwork), work, -1); |
| dat = fontmng_get(fnt, oemwork); | dat = fontmng_get(fnt, oemwork); |
| #else | #else |
| 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_sjistooem(oemwork, NELEMENTS(oemwork), work, -1); | oemtext_sjistooem(oemwork, NELEMENTS(oemwork), work, -1); |
| dat = fontmng_get(fnt, oemwork); | dat = fontmng_get(fnt, oemwork); |
| #else | #else |