diff options
Diffstat (limited to 'engines/gargoyle/fonts.cpp')
-rw-r--r-- | engines/gargoyle/fonts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gargoyle/fonts.cpp b/engines/gargoyle/fonts.cpp index 7cf4e1d4ac..4f298b0a8d 100644 --- a/engines/gargoyle/fonts.cpp +++ b/engines/gargoyle/fonts.cpp @@ -119,13 +119,13 @@ int Fonts::drawStringUni(const Point &pos, int fontIdx, const byte *rgb, const C size_t Fonts::stringWidth(int fontIdx, const Common::String &text, int spw) { // TODO: Handle spw Graphics::Font *font = _fontTable[fontIdx]; - return font->getStringWidth(text); + return font->getStringWidth(text) * GLI_SUBPIX; } size_t Fonts::stringWidthUni(int fontIdx, const Common::U32String &text, int spw) { // TODO: Handle spw Graphics::Font *font = _fontTable[fontIdx]; - return font->getStringWidth(text); + return font->getStringWidth(text) * GLI_SUBPIX; } } // End of namespace Gargoyle |