1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00

- Add LICENSE

- Fix build with clang 4.0 by fixing ordered pointer comparisons
This commit is contained in:
Dmitry Marakasov 2017-02-01 14:20:09 +00:00
parent 6b8dcce1cd
commit a7f8d5f93a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433036
2 changed files with 24 additions and 0 deletions

View File

@ -10,6 +10,10 @@ MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}%20Linux_Unix/${PORTNAME}%20V${PORTVE
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Drive a toy wood train in many levels - snake-like arcade game
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING
USES= tar:bzip2 gmake
GNU_CONFIGURE= yes
USE_SDL= sdl mixer

View File

@ -0,0 +1,20 @@
--- src/sprite.cc.orig 2007-11-02 11:48:20 UTC
+++ src/sprite.cc
@@ -351,7 +351,7 @@ bool Sprite::Load(unsigned char *Buf,lon
// Fabrique la surface
Image[i]=SDL_CreateRGBSurface((Dim[i].bpp-3)*SDL_SRCALPHA,Dim[i].L,Dim[i].H,Dim[i].bpp*8,
0xff,0xff00,0xff0000,0xff000000*(Dim[i].bpp-3));
- if(Image[i]<=NULL) {
+ if(Image[i]==NULL) {
cerr <<"Impossible de créer une Surface SDL!"<<endl;
return false;
}
@@ -485,7 +485,7 @@ bool Sprite::Nouveau(int Lx,int Ly)
// Fabrique la surface
Image[0]=SDL_CreateRGBSurface((Dim[0].bpp-3)*SDL_SRCALPHA,Dim[0].L,Dim[0].H,Dim[0].bpp*8,
0xff,0xff00,0xff0000,0xff000000*(Dim[0].bpp-3));
- if(Image[0]<=NULL) {
+ if(Image[0]==NULL) {
cerr <<"Impossible de créer une Surface SDL!"<<endl;
return false;
}