probably needs some work to match TP(debug)
| 516 | |
| 517 | // probably needs some work to match TP(debug) |
| 518 | int JUTResFont::convertSjis(int inChr, u16 *inLead) const |
| 519 | { |
| 520 | u8 hi = JSUHiByte(inChr); |
| 521 | u16 lead = JSULoByte(inChr); |
| 522 | int out = lead - 0x40; |
| 523 | if (0x40 <= out) |
| 524 | { |
| 525 | out--; |
| 526 | } |
| 527 | lead = 0x31c; |
| 528 | if(inLead) { |
| 529 | lead = *inLead; |
| 530 | } |
| 531 | return out + (hi - 0x88) * 0xbc + -0x5e + lead; |
| 532 | } |