mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 20:17:49 +00:00
SCI32: Fix rendering of non-ASCII characters
This commit is contained in:
parent
9ee8813881
commit
bfbbee8697
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user