forked from kivy/kivy-ios
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdl-ttf: fix compilation when we never installed SDL on our system. t…
…he current buidl was relying on the sdl-config that doesn't exist. Instead, generate a fake sdl.pc for pkg-config, and use it when compiling the SDL_ttf. closes kivy#15
- Loading branch information
Showing
4 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff -Naur SDL_ttf-2.0.10/SDL_ttf.c SDL_ttf-2.0.10.orig/SDL_ttf.c | ||
--- SDL_ttf-2.0.10.orig/SDL_ttf.c 2012-07-21 16:47:06.000000000 +0200 | ||
+++ SDL_ttf-2.0.10/SDL_ttf.c 2009-10-19 10:18:05.000000000 +0200 | ||
@@ -1336,7 +1336,7 @@ | ||
palette->colors[1].r = fg.r; | ||
palette->colors[1].g = fg.g; | ||
palette->colors[1].b = fg.b; | ||
- SDL_SetColorKey( textbuf, SDL_SRCCOLORKEY, 0 ); | ||
+ SDL_SetColorKey( textbuf, SDL_TRUE, 0 ); | ||
|
||
/* check kerning */ | ||
use_kerning = FT_HAS_KERNING( font->face ) && font->kerning; | ||
@@ -1461,7 +1461,7 @@ | ||
palette->colors[1].r = fg.r; | ||
palette->colors[1].g = fg.g; | ||
palette->colors[1].b = fg.b; | ||
- SDL_SetColorKey(textbuf, SDL_SRCCOLORKEY, 0); | ||
+ SDL_SetColorKey(textbuf, SDL_TRUE, 0); | ||
|
||
/* Copy the character from the pixmap */ | ||
src = glyph->bitmap.buffer; |