From d18da616dc9a06dca907e74f9f316c6ea3dbb55c Mon Sep 17 00:00:00 2001 From: "\"John Hawthorn ext:(%22)" Date: Wed, 31 Dec 2008 18:13:23 -0800 Subject: cleanup --- Makefile | 2 +- src/scale.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6d9243d..e1e4beb 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ CLEANFILES := $(CLEANFILES) $(DEPFILES) $(OBJFILES) meh LIBS := -lX11 -lXext -ljpeg -lpng -lgif meh: $(OBJFILES) - $(CC) -o $@ $(OBJFILES) $(LIBS) + $(CC) $(LDFLAGS) -o $@ $(OBJFILES) $(LIBS) -include $(DEPFILES) diff --git a/src/scale.c b/src/scale.c index e7cc41c..5036738 100644 --- a/src/scale.c +++ b/src/scale.c @@ -37,7 +37,7 @@ struct timeval t1; #define YITER \ const unsigned int bufy = (y << 10) * img->bufheight / ximg->height;\ const unsigned int v = (bufy & 1023);\ - const unsigned int vr = 1023^(bufy & 1023);\ + const unsigned int vr = 1023^v;\ ibuf = &img->buf[y * img->bufheight / ximg->height * img->bufwidth * 3];\ ibufn = ibuf + dy; -- cgit v1.2.3