libSDL_ttf/libSDL_ttf-2.0.11-bug1433.patch

11 lines
450 B
Diff

--- SDL_ttf.c.orig 2012-02-12 16:36:41.859977617 +0100
+++ SDL_ttf.c 2012-02-12 16:36:53.696580159 +0100
@@ -1747,7 +1747,7 @@
/* Copy the character from the pixmap */
src = glyph->pixmap.buffer;
dst = (Uint8*) textbuf->pixels;
- for ( row = 0; row < glyph->bitmap.rows; ++row ) {
+ for ( row = 0; row < glyph->pixmap.rows; ++row ) {
memcpy( dst, src, glyph->pixmap.width );
src += glyph->pixmap.pitch;
dst += textbuf->pitch;