]> bicyclesonthemoon.info Git - ott/enhance/commitdiff
The file, that makes. facepalm #2
authorb <b@0d794883-4e4e-4f65-aa7a-0e7f5947bab5>
Mon, 23 Dec 2013 21:52:18 +0000 (21:52 +0000)
committerb <b@0d794883-4e4e-4f65-aa7a-0e7f5947bab5>
Mon, 23 Dec 2013 21:52:18 +0000 (21:52 +0000)
git-svn-id: svn://botcastle1b/npb@7 0d794883-4e4e-4f65-aa7a-0e7f5947bab5

makefile [new file with mode: 0644]
npb
npb.cpp

diff --git a/makefile b/makefile
new file mode 100644 (file)
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 3b2ee72963517b5044afa2d6a675086792b85b2a..ddcb69fa0b54e9590ca34f0d0088965e1d5aa7e7 100755 (executable)
Binary files a/npb and b/npb differ
diff --git a/npb.cpp b/npb.cpp
index 66d78f3071a1eed27d32182f826201ce1b1ce27f..0d4d3a5904c4f1572d07b0ea41ee78cdb8a0df36 100644 (file)
--- 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");