From 911eda9dcfef2bbf8742e6875394a0e5032cdf27 Mon Sep 17 00:00:00 2001 From: hackbard Date: Tue, 15 Mar 2005 18:28:09 +0000 Subject: [PATCH] switched to apropriate values --- linescan.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/linescan.c b/linescan.c index 11a2b5f..889446c 100644 --- a/linescan.c +++ b/linescan.c @@ -11,10 +11,13 @@ #include #include "bmp.h" +#define DX (3) + int main(int argc,char **argv) { t_bmp bmp; - int x,y; + int x,y,d; + double val; if(argc!=2) { printf("usage: %s \n",argv[0]); @@ -27,12 +30,15 @@ int main(int argc,char **argv) { bmp_read_file(&bmp); - dprintf(2,"width = %d\n",bmp.info.width); + dprintf(2,"width = %d ... delta x = %d.\n",bmp.info.width,DX); x=bmp.info.width/2; for(y=0;y