mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Fix font rendering via TTF_RenderGlyph_Shaded()
PR: 196655 Submitted by: jbeich@
This commit is contained in:
parent
be96c81884
commit
e1b4d7d984
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378576
2 changed files with 20 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= sdl_ttf
|
PORTNAME= sdl_ttf
|
||||||
PORTVERSION= 2.0.11
|
PORTVERSION= 2.0.11
|
||||||
PORTREVISION= 5
|
PORTREVISION= 6
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= http://www.libsdl.org/projects/SDL_ttf/release/
|
MASTER_SITES= http://www.libsdl.org/projects/SDL_ttf/release/
|
||||||
DISTNAME= SDL_ttf-${PORTVERSION}
|
DISTNAME= SDL_ttf-${PORTVERSION}
|
||||||
|
|
19
graphics/sdl_ttf/files/patch-bug1433
Normal file
19
graphics/sdl_ttf/files/patch-bug1433
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
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
|
||||||
|
Bug-Upstream: https://bugzilla.libsdl.org/show_bug.cgi?id=1433
|
||||||
|
|
||||||
|
--- SDL_ttf.c
|
||||||
|
+++ 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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue