diff options
author | Vladimir Menshakov | 2009-09-07 20:12:17 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-09-07 20:12:17 +0000 |
commit | 3a1c347da6744ed97ba3240c10d07f5976371338 (patch) | |
tree | a1f3628f4034d8865aba6a32898079abc29d7564 /engines/teenagent/font.cpp | |
parent | 8fa0b431ee64b7c9105051981c6a62f30983e6fc (diff) | |
download | scummvm-rg350-3a1c347da6744ed97ba3240c10d07f5976371338.tar.gz scummvm-rg350-3a1c347da6744ed97ba3240c10d07f5976371338.tar.bz2 scummvm-rg350-3a1c347da6744ed97ba3240c10d07f5976371338.zip |
fixed invalid text length calculation
svn-id: r44004
Diffstat (limited to 'engines/teenagent/font.cpp')
-rw-r--r-- | engines/teenagent/font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/font.cpp b/engines/teenagent/font.cpp index 5e917dc354..5f0cd1c42d 100644 --- a/engines/teenagent/font.cpp +++ b/engines/teenagent/font.cpp @@ -54,7 +54,7 @@ uint Font::render(Graphics::Surface *surface, int x, int y, char c) { uint h = glyph[0], w = glyph[1]; if (surface == NULL || surface->pixels == NULL) - return w; + return w - 1; //debug(0, "char %c, width: %dx%d", c, w, h); glyph += 2; |