diff options
author | Narek Mailian | 2013-06-13 12:32:36 +0000 |
---|---|---|
committer | Narek Mailian | 2013-08-16 20:54:08 +0200 |
commit | 887a99e211c25fd16e4cf3b7505ae17678c2f997 (patch) | |
tree | abb8a48758d30bab824e9794feb193a7d83609cf /graphics/font.cpp | |
parent | 1d21f5db264b98c53ef1475bdf0f2ffbe01c2e79 (diff) | |
download | scummvm-rg350-887a99e211c25fd16e4cf3b7505ae17678c2f997.tar.gz scummvm-rg350-887a99e211c25fd16e4cf3b7505ae17678c2f997.tar.bz2 scummvm-rg350-887a99e211c25fd16e4cf3b7505ae17678c2f997.zip |
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
Diffstat (limited to 'graphics/font.cpp')
-rw-r--r-- | graphics/font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |