From 9a13b3454924390620675177785c8e1ef25b0f2b Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Mon, 19 Mar 2012 22:57:48 +0100 Subject: GRAPHICS: Fix TTF glyph drawing at negative Y positions. --- graphics/fonts/ttf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/fonts/ttf.cpp') 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; } -- cgit v1.2.3