aboutsummaryrefslogtreecommitdiffstats
path: root/games/spacejunk/files/patch-src-SFont.c
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-06-14 21:18:53 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-06-14 21:18:53 +0800
commit76e9c06cf8ef5efe18bf125d8ea2205001cee9e0 (patch)
tree5f3b38d01ef64132464becb274f9dd270758bf86 /games/spacejunk/files/patch-src-SFont.c
parent3bd735be71e4bcc2eeee09e002233515a5e11051 (diff)
downloadfreebsd-ports-gnome-76e9c06cf8ef5efe18bf125d8ea2205001cee9e0.tar.gz
freebsd-ports-gnome-76e9c06cf8ef5efe18bf125d8ea2205001cee9e0.tar.zst
freebsd-ports-gnome-76e9c06cf8ef5efe18bf125d8ea2205001cee9e0.zip
- Fix build with clang
- Add LICENSE
Diffstat (limited to 'games/spacejunk/files/patch-src-SFont.c')
-rw-r--r--games/spacejunk/files/patch-src-SFont.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/games/spacejunk/files/patch-src-SFont.c b/games/spacejunk/files/patch-src-SFont.c
new file mode 100644
index 000000000000..b139751b8364
--- /dev/null
+++ b/games/spacejunk/files/patch-src-SFont.c
@@ -0,0 +1,12 @@
+Clang compatibility
+--- src/SFont.c.orig 2013-06-14 01:28:33.767289275 +0400
++++ src/SFont.c 2013-06-14 01:39:06.709113401 +0400
+@@ -72,7 +72,7 @@
+ return -1;
+ }
+
+-Uint32 searchFirstPixel(SDL_Surface* s,int* X,int* Y,int* MinY){
++void searchFirstPixel(SDL_Surface* s,int* X,int* Y,int* MinY){
+ Uint32 bgpixel = GetPixel(s, 0, s->h-1);
+
+ int x=0;