aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-01 19:21:31 -0700
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit4b5db1da07572eca7a69e40e32c4935921908b3c (patch)
treee9023ddeee66a958ae8702bf4c1bed0dac06ff70
parent4229312b227dc62f721d7de3cdfdee8a6310f22f (diff)
downloadscummvm-rg350-4b5db1da07572eca7a69e40e32c4935921908b3c.tar.gz
scummvm-rg350-4b5db1da07572eca7a69e40e32c4935921908b3c.tar.bz2
scummvm-rg350-4b5db1da07572eca7a69e40e32c4935921908b3c.zip
GLK: Fix showing input text to the right of input prompt
-rw-r--r--engines/gargoyle/fonts.cpp2
1 files changed, 1 insertions, 1 deletions
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) {