From 4b5db1da07572eca7a69e40e32c4935921908b3c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 1 Nov 2018 19:21:31 -0700 Subject: GLK: Fix showing input text to the right of input prompt --- engines/gargoyle/fonts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/gargoyle/fonts.cpp b/engines/gargoyle/fonts.cpp index 4f298b0a8d..e523ecb83d 100644 --- a/engines/gargoyle/fonts.cpp +++ b/engines/gargoyle/fonts.cpp @@ -113,7 +113,7 @@ int Fonts::drawStringUni(const Point &pos, int fontIdx, const byte *rgb, const C const uint32 color = _surface->format.RGBToColor(rgb[0], rgb[1], rgb[2]); font->drawString(_surface, text, pt.x, pt.y, _surface->w - pt.x, color); - return font->getBoundingBox(text, pt.x, pt.y, _surface->w - pt.x).right; + return font->getBoundingBox(text, pt.x, pt.y, _surface->w - pt.x).right * GLI_SUBPIX; } size_t Fonts::stringWidth(int fontIdx, const Common::String &text, int spw) { -- cgit v1.2.3