mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +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);
|
SciBitmap &bitmap = *_segMan->lookupBitmap(_bitmap);
|
||||||
byte *pixels = bitmap.getPixels();
|
byte *pixels = bitmap.getPixels();
|
||||||
|
|
||||||
_font->drawToBuffer(charIndex, _drawPosition.y, _drawPosition.x, _foreColor, _dimmed, pixels, _width, _height);
|
_font->drawToBuffer((unsigned char)charIndex, _drawPosition.y, _drawPosition.x, _foreColor, _dimmed, pixels, _width, _height);
|
||||||
_drawPosition.x += _font->getCharWidth(charIndex);
|
_drawPosition.x += _font->getCharWidth((unsigned char)charIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16 GfxText32::getCharWidth(const char charIndex, const bool doScaling) const {
|
uint16 GfxText32::getCharWidth(const char charIndex, const bool doScaling) const {
|
||||||
uint16 width = _font->getCharWidth(charIndex);
|
uint16 width = _font->getCharWidth((unsigned char)charIndex);
|
||||||
if (doScaling) {
|
if (doScaling) {
|
||||||
width = scaleUpWidth(width);
|
width = scaleUpWidth(width);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user