Sun May 20 10:06:19 2012 UTC ()
Bump PKGREVISION.

Add patch provided in upstream bug report,
http://bugzilla.libsdl.org/show_bug.cgi?id=1433

This patch fixes character drawing problem in games/onscripter at least.
Thank you, tsustui@.


(ryoon)
diff -r1.30 -r1.31 pkgsrc/devel/SDL_ttf/Makefile
diff -r1.10 -r1.11 pkgsrc/devel/SDL_ttf/distinfo
diff -r0 -r1.1 pkgsrc/devel/SDL_ttf/patches/patch-SDL__ttf.c

cvs diff -r1.30 -r1.31 pkgsrc/devel/SDL_ttf/Makefile (expand / switch to context diff)
--- pkgsrc/devel/SDL_ttf/Makefile 2012/01/28 13:49:14 1.30
+++ pkgsrc/devel/SDL_ttf/Makefile 2012/05/20 10:06:19 1.31
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.30 2012/01/28 13:49:14 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2012/05/20 10:06:19 ryoon Exp $
 
 DISTNAME=	SDL_ttf-2.0.11
+PKGREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://www.libsdl.org/projects/SDL_ttf/release/
 

cvs diff -r1.10 -r1.11 pkgsrc/devel/SDL_ttf/distinfo (expand / switch to context diff)
--- pkgsrc/devel/SDL_ttf/distinfo 2012/01/28 13:49:14 1.10
+++ pkgsrc/devel/SDL_ttf/distinfo 2012/05/20 10:06:19 1.11
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.10 2012/01/28 13:49:14 wiz Exp $
+$NetBSD: distinfo,v 1.11 2012/05/20 10:06:19 ryoon Exp $
 
 SHA1 (SDL_ttf-2.0.11.tar.gz) = 0ccf7c70e26b7801d83f4847766e09f09db15cc6
 RMD160 (SDL_ttf-2.0.11.tar.gz) = 95a06230f5e82ba7b06a39987ed1828985c70dae
 Size (SDL_ttf-2.0.11.tar.gz) = 4053686 bytes
+SHA1 (patch-SDL__ttf.c) = 01507743903735974203e7995e698ab9de15d911
 SHA1 (patch-aa) = 5ae58f13e2f48834eaf200131c9baaa5dc3d9d1a

File Added: pkgsrc/devel/SDL_ttf/patches/patch-SDL__ttf.c
$NetBSD: patch-SDL__ttf.c,v 1.1 2012/05/20 10:06:19 ryoon Exp $

Patch provided in upstream bug report,
http://bugzilla.libsdl.org/show_bug.cgi?id=1433

--- SDL_ttf.c.orig	2012-01-15 04:44:08.000000000 +0000
+++ SDL_ttf.c
@@ -1747,7 +1747,7 @@ SDL_Surface* TTF_RenderGlyph_Shaded( TTF
 	/* 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;