diff options
author | Travis Howell | 2004-08-31 07:40:28 +0000 |
---|---|---|
committer | Travis Howell | 2004-08-31 07:40:28 +0000 |
commit | 0ab96ee6c87f6ca4be680f11f3bb502594b3b16c (patch) | |
tree | a8436ae299deee99e916b8e1d59e3f2b81920535 /scumm/charset.cpp | |
parent | 93584bcdc395cc34e3ccde3ce47e5aa3aaec98d3 (diff) | |
download | scummvm-rg350-0ab96ee6c87f6ca4be680f11f3bb502594b3b16c.tar.gz scummvm-rg350-0ab96ee6c87f6ca4be680f11f3bb502594b3b16c.tar.bz2 scummvm-rg350-0ab96ee6c87f6ca4be680f11f3bb502594b3b16c.zip |
Move function as requested.
svn-id: r14844
Diffstat (limited to 'scumm/charset.cpp')
-rw-r--r-- | scumm/charset.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp index fff1f3b728..a3e5755ea4 100644 --- a/scumm/charset.cpp +++ b/scumm/charset.cpp @@ -50,30 +50,6 @@ CharsetRenderer::CharsetRenderer(ScummEngine *vm) { _curId = 0; } -int CharsetRenderer::getLetter(int letter) { - int offset, result; - - byte *ptr = _vm->getResourceAddress(rtCharset, _curId); - if (!ptr) - error("CharsetRenderer::getLetter: charset %d not found!", _curId); - - offset = READ_LE_UINT32(ptr + 29 + letter); - if (offset == 0) - return 0; - - ptr += offset; - - result = READ_LE_UINT16(ptr + 2); - byte start = *ptr; - - if (result >= 0x80) { - result = result - 256 + start; - } else { - result += start; - }; - return (result); -} - void CharsetRendererCommon::setCurID(byte id) { checkRange(_vm->_numCharsets - 1, 0, id, "Printing with bad charset %d"); |