Debian Codegraph @

debian/patches/fix_bug_661987_TTF_RenderGlyph_Shaded_is_broken

raw
1 Description: Fix bug report "TTF_RenderGlyph_Shaded is broken"
2 Introduced in 2.0.11-2 (Sat, 03 Mar 2012).
3 Author: Unknown
4 Last-Update: 2012-03-03
5 Bug-Debian: http://bugs.debian.org/661987
6 --- a/SDL_ttf.c
7 +++ b/SDL_ttf.c
8 @@ -1752,7 +1752,7 @@
9 /* Copy the character from the pixmap */
10 src = glyph->pixmap.buffer;
11 dst = (Uint8*) textbuf->pixels;
12 - for ( row = 0; row < glyph->bitmap.rows; ++row ) {
13 + for ( row = 0; row < glyph->pixmap.rows; ++row ) {
14 memcpy( dst, src, glyph->pixmap.width );
15 src += glyph->pixmap.pitch;
16 dst += textbuf->pitch;