diff options
author | Colin Snover | 2016-08-28 19:32:38 -0500 |
---|---|---|
committer | Colin Snover | 2016-08-28 19:33:21 -0500 |
commit | bfbbee869740f00d82a6f7badbb8d18a53cd5425 (patch) | |
tree | 48b1a31545a32d8c0dbac4e8f6f8beb211364007 /engines/sci/graphics | |
parent | 9ee88138817c4992c2fced6fc79cb9f99c105f7c (diff) | |
download | scummvm-rg350-bfbbee869740f00d82a6f7badbb8d18a53cd5425.tar.gz scummvm-rg350-bfbbee869740f00d82a6f7badbb8d18a53cd5425.tar.bz2 scummvm-rg350-bfbbee869740f00d82a6f7badbb8d18a53cd5425.zip |
SCI32: Fix rendering of non-ASCII characters
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/text32.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp index f81d50946b..11572581ff 100644 --- a/engines/sci/graphics/text32.cpp +++ b/engines/sci/graphics/text32.cpp @@ -211,12 +211,12 @@ void GfxText32::drawChar(const char charIndex) { SciBitmap &bitmap = *_segMan->lookupBitmap(_bitmap); byte *pixels = bitmap.getPixels(); - _font->drawToBuffer(charIndex, _drawPosition.y, _drawPosition.x, _foreColor, _dimmed, pixels, _width, _height); - _drawPosition.x += _font->getCharWidth(charIndex); + _font->drawToBuffer((unsigned char)charIndex, _drawPosition.y, _drawPosition.x, _foreColor, _dimmed, pixels, _width, _height); + _drawPosition.x += _font->getCharWidth((unsigned char)charIndex); } uint16 GfxText32::getCharWidth(const char charIndex, const bool doScaling) const { - uint16 width = _font->getCharWidth(charIndex); + uint16 width = _font->getCharWidth((unsigned char)charIndex); if (doScaling) { width = scaleUpWidth(width); } |