FreeBSD Bugzilla – Attachment 241429 Details for
Bug 270781
graphics/grafx2: Fix TTF font rendering
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix TTF font rendering in graphics/grafx2
graphics_grafx2_ttf.diff (text/plain), 1.29 KB, created by
Tobias Rehbein
on 2023-04-12 08:59:35 UTC
(
hide
)
Description:
Patch to fix TTF font rendering in graphics/grafx2
Filename:
MIME Type:
Creator:
Tobias Rehbein
Created:
2023-04-12 08:59:35 UTC
Size:
1.29 KB
patch
obsolete
>diff --git a/graphics/grafx2/Makefile b/graphics/grafx2/Makefile >index e953bfbb61dc..220dc2a2ab41 100644 >--- a/graphics/grafx2/Makefile >+++ b/graphics/grafx2/Makefile >@@ -1,6 +1,7 @@ > PORTNAME= grafx2 > PORTVERSION= 2.8 > DISTVERSIONSUFFIX= .3091-HEAD-src >+PORTREVISION= 1 > CATEGORIES= graphics > MASTER_SITES= http://pulkomandy.tk/projects/GrafX2/downloads/ \ > LOCAL/ehaupt >diff --git a/graphics/grafx2/files/patch-sdlscreen.c b/graphics/grafx2/files/patch-sdlscreen.c >new file mode 100644 >index 000000000000..dd9edc00666c >--- /dev/null >+++ b/graphics/grafx2/files/patch-sdlscreen.c >@@ -0,0 +1,29 @@ >+--- sdlscreen.c.orig 2023-04-11 14:41:38 UTC >++++ sdlscreen.c >+@@ -373,17 +373,11 @@ byte * Surface_to_bytefield(SDL_Surface *source, byte >+ byte *src; >+ byte *dest_ptr; >+ int y; >+- int remainder; >+ >+ // Support seulement des images 256 couleurs >+ if (source->format->BytesPerPixel != 1) >+ return NULL; >+ >+- if (source->w & 3) >+- remainder=4-(source->w&3); >+- else >+- remainder=0; >+- >+ if (dest==NULL) >+ dest=(byte *)malloc(source->w*source->h); >+ >+@@ -393,7 +387,7 @@ byte * Surface_to_bytefield(SDL_Surface *source, byte >+ { >+ memcpy(dest_ptr, src,source->w); >+ dest_ptr += source->w; >+- src += source->w + remainder; >++ src += source->pitch; >+ } >+ return dest; >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 270781
: 241429