diff options
author | Alyssa Milburn | 2012-03-19 22:57:48 +0100 |
---|---|---|
committer | Alyssa Milburn | 2012-03-19 22:57:48 +0100 |
commit | 9a13b3454924390620675177785c8e1ef25b0f2b (patch) | |
tree | e0080e32da14c53cf519b80050f283065129922e /graphics/fonts | |
parent | be8c557645bf73e96a463c60bd0422b39a3edfef (diff) | |
download | scummvm-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')
-rw-r--r-- | graphics/fonts/ttf.cpp | 2 |
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; } |