From 887a99e211c25fd16e4cf3b7505ae17678c2f997 Mon Sep 17 00:00:00 2001 From: Narek Mailian Date: Thu, 13 Jun 2013 12:32:36 +0000 Subject: GRAPHICS: Added changes and improved code from inisider/scummvm (partial text) Includes code from https://github.com/inisider/scummvm/ , which has been squashed and bugfixed --- graphics/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/font.cpp') diff --git a/graphics/font.cpp b/graphics/font.cpp index 3b00cd8568..a852274b06 100644 --- a/graphics/font.cpp +++ b/graphics/font.cpp @@ -128,7 +128,7 @@ void Font::drawString(Surface *dst, const Common::String &sOld, int x, int y, in w = getCharWidth(cur); if (x+w > rightX) break; - if (x >= leftX) + if (x+w >= leftX) drawChar(dst, str[i], x, y, color); x += w; } -- cgit v1.2.3