Move function as requested.

svn-id: r14844
This commit is contained in:
Travis Howell 2004-08-31 07:40:28 +00:00
parent 93584bcdc3
commit 0ab96ee6c8
4 changed files with 28 additions and 28 deletions

View file

@ -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");