aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts/ttf.cpp
diff options
context:
space:
mode:
authorAlyssa Milburn2012-03-19 22:57:48 +0100
committerAlyssa Milburn2012-03-19 22:57:48 +0100
commit9a13b3454924390620675177785c8e1ef25b0f2b (patch)
treee0080e32da14c53cf519b80050f283065129922e /graphics/fonts/ttf.cpp
parentbe8c557645bf73e96a463c60bd0422b39a3edfef (diff)
downloadscummvm-rg350-9a13b3454924390620675177785c8e1ef25b0f2b.tar.gz
scummvm-rg350-9a13b3454924390620675177785c8e1ef25b0f2b.tar.bz2
scummvm-rg350-9a13b3454924390620675177785c8e1ef25b0f2b.zip
GRAPHICS: Fix TTF glyph drawing at negative Y positions.
Diffstat (limited to 'graphics/fonts/ttf.cpp')
-rw-r--r--graphics/fonts/ttf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/fonts/ttf.cpp b/graphics/fonts/ttf.cpp
index 06231799ce..5e3ed44926 100644
--- a/graphics/fonts/ttf.cpp
+++ b/graphics/fonts/ttf.cpp
@@ -338,7 +338,7 @@ void TTFFont::drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const
return;
if (y < 0) {
- srcPos += y * glyph.image.pitch;
+ srcPos -= y * glyph.image.pitch;
h += y;
y = 0;
}