File: fix_bug_661987_TTF_RenderGlyph_Shaded_is_broken

package info (click to toggle)
sdl-ttf2.0 2.0.11-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 12,308 kB
  • sloc: sh: 10,170; ansic: 6,423; objc: 520; csh: 219; makefile: 66
file content (16 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix bug report "TTF_RenderGlyph_Shaded is broken"
 Introduced in 2.0.11-2 (Sat, 03 Mar 2012).
Author: Unknown
Last-Update: 2012-03-03
Bug-Debian: http://bugs.debian.org/661987
--- a/SDL_ttf.c
+++ b/SDL_ttf.c
@@ -1752,7 +1752,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;