mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add sdl-pango.
* gnu/packages/sdl.scm (sdl-pango): New variable. * gnu/packages/patches/sdl-pango-api_additions.patch: New file. * gnu/packages/patches/sdl-pango-blit_overflow.patch: New file. * gnu/packages/patches/sdl-pango-fillrect_crash.patch: New file. * gnu/packages/patches/sdl-pango-fix-explicit-SDLPango_CopyFTBitmapToSurface.patch: New file. * gnu/packages/patches/sdl-pango-matrix_declarations.patch: New file. * gnu/packages/patches/sdl-pango-sans-serif.patch: New file. * gnu/local.mk (sdl-pango): Reference patches. add
This commit is contained in:
parent
2a2da78326
commit
f389c65dbb
8 changed files with 396 additions and 1 deletions
15
gnu/packages/patches/sdl-pango-fillrect_crash.patch
Normal file
15
gnu/packages/patches/sdl-pango-fillrect_crash.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
Index: SDL_Pango-0.1.2/src/SDL_Pango.c
|
||||
===================================================================
|
||||
--- SDL_Pango-0.1.2.orig/src/SDL_Pango.c 2007-09-18 15:56:12.406223540 +0200
|
||||
+++ SDL_Pango-0.1.2/src/SDL_Pango.c 2007-09-18 15:57:27.986530616 +0200
|
||||
@@ -932,7 +932,9 @@
|
||||
width = PANGO_PIXELS (logical_rect.width);
|
||||
height = PANGO_PIXELS (logical_rect.height);
|
||||
|
||||
- SDL_FillRect(surface, NULL, SDL_MapRGBA(surface->format, 0, 0, 0, 0));
|
||||
+ if (width && height) {
|
||||
+ SDL_FillRect(surface, NULL, SDL_MapRGBA(surface->format, 0, 0, 0, 0));
|
||||
+ }
|
||||
|
||||
if((! context->tmp_ftbitmap) || context->tmp_ftbitmap->width < width
|
||||
|| context->tmp_ftbitmap->rows < height)
|
Loading…
Add table
Add a link
Reference in a new issue