diff options
author | Johannes Schickel | 2009-09-30 14:54:18 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-09-30 14:54:18 +0000 |
commit | 2240886315c4031fc7e68ae644916e35c607615e (patch) | |
tree | 970ea4dbe6416232636dc5647ea836c70e481d84 | |
parent | 438244a0168c1d3fcecee379ecae78c1808d49a6 (diff) | |
download | scummvm-rg350-2240886315c4031fc7e68ae644916e35c607615e.tar.gz scummvm-rg350-2240886315c4031fc7e68ae644916e35c607615e.tar.bz2 scummvm-rg350-2240886315c4031fc7e68ae644916e35c607615e.zip |
Got rid of old workaround, which was only needed because our SJIS font did not feature any ASCII chars.
svn-id: r44489
-rw-r--r-- | engines/kyra/sequences_lol.cpp | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/engines/kyra/sequences_lol.cpp b/engines/kyra/sequences_lol.cpp index 769ebacb38..0c9cf6d297 100644 --- a/engines/kyra/sequences_lol.cpp +++ b/engines/kyra/sequences_lol.cpp @@ -303,25 +303,13 @@ int LoLEngine::chooseCharacter() { for (int i = 0; i < 4; ++i) { _screen->printText((const char *)_charNamesPC98[i], _charPosXPC98[i], 168, 0xC1, 0x00); - // Since our SJIS font does not support ASCII digits currently, we have to use the - // digits from the SJIS range, which looks different to the original. + Screen::FontId old = _screen->setFont(Screen::FID_SJIS_FNT); for (int j = 0; j < 3; ++j) { - uint8 buffer[5]; - snprintf((char *)buffer, 5, "%2d", _charPreviews[i].attrib[j]); - - buffer[3] = buffer[1] - '0' + 0x4F; - buffer[2] = 0x82; - if (buffer[0] != ' ') { - buffer[1] = buffer[0] - '0' + 0x4F; - buffer[0] = 0x82; - } else { - buffer[1] = 0x40; - buffer[0] = 0x81; - } - buffer[4] = 0x00; - - _screen->printText((const char *)buffer, _charPosXPC98[i] + 16, 176 + j * 8, 0x81, 0x00); + char buffer[3]; + snprintf(buffer, sizeof(buffer), "%2d", _charPreviews[i].attrib[j]); + _screen->printText(buffer, _charPosXPC98[i] + 16, 176 + j * 8, 0x81, 0x00); } + _screen->setFont(old); } _screen->printText(_tim->getCTableEntry(51), 72, 176, 0x81, 0x00); |