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 unified 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,16 +1,17 @@ @@ -1,16 +1,17 @@
1# $NetBSD: Makefile,v 1.30 2012/01/28 13:49:14 wiz Exp $ 1# $NetBSD: Makefile,v 1.31 2012/05/20 10:06:19 ryoon Exp $
2 2
3DISTNAME= SDL_ttf-2.0.11 3DISTNAME= SDL_ttf-2.0.11
 4PKGREVISION= 1
4CATEGORIES= devel 5CATEGORIES= devel
5MASTER_SITES= http://www.libsdl.org/projects/SDL_ttf/release/ 6MASTER_SITES= http://www.libsdl.org/projects/SDL_ttf/release/
6 7
7MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
8HOMEPAGE= http://www.libsdl.org/projects/SDL_ttf/ 9HOMEPAGE= http://www.libsdl.org/projects/SDL_ttf/
9COMMENT= Use TrueType fonts in your SDL applications 10COMMENT= Use TrueType fonts in your SDL applications
10LICENSE= zlib 11LICENSE= zlib
11 12
12PKG_DESTDIR_SUPPORT= user-destdir 13PKG_DESTDIR_SUPPORT= user-destdir
13 14
14USE_LIBTOOL= yes 15USE_LIBTOOL= yes
15GNU_CONFIGURE= yes 16GNU_CONFIGURE= yes
16 17

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