From: b Date: Mon, 23 Dec 2013 21:52:18 +0000 (+0000) Subject: The file, that makes. facepalm #2 X-Git-Url: http://bicyclesonthemoon.info/git-projects/?a=commitdiff_plain;h=b26d05db068fa3b77bfd2420200153b2593eb8ec;p=ott%2Fenhance The file, that makes. facepalm #2 git-svn-id: svn://botcastle1b/npb@7 0d794883-4e4e-4f65-aa7a-0e7f5947bab5 --- diff --git a/makefile b/makefile new file mode 100644 index 0000000..08ab0f3 --- /dev/null +++ b/makefile @@ -0,0 +1,8 @@ +CC=g++ +CF=-g -Wall +LF=-lIL + +all: npb + +npb: npb.cpp makefile + $(CC) $(CF) $(LF) -o npb npb.cpp diff --git a/npb b/npb index 3b2ee72..ddcb69f 100755 Binary files a/npb and b/npb differ diff --git a/npb.cpp b/npb.cpp index 66d78f3..0d4d3a5 100644 --- a/npb.cpp +++ b/npb.cpp @@ -31,7 +31,7 @@ int main (int argc, const char *argv[]) ilEnable(IL_ORIGIN_SET); ilGenImages(1, &inPix); ilBindImage(inPix); - if(ilLoadImage(argv[1])) + if(!ilLoadImage(argv[1])) { ilDeleteImages(1, &inPix); if(q) printf("Input file mustard\n");