--- psiconv/trunk/lib/psiconv/parse_image.c 1999/10/11 15:06:57 10 +++ psiconv/trunk/lib/psiconv/parse_image.c 1999/10/11 15:17:17 11 @@ -29,8 +29,9 @@ { int res = 0; int len = 0; - psiconv_u32 size; - int leng; + psiconv_u32 size,offset,picsize,temp,datasize,pixelnr,datanr; + psiconv_u8 marker; + int i; psiconv_progress(lev+1,off,"Going to read a paint data section"); (*result) = malloc(sizeof(**result)); @@ -62,7 +63,7 @@ picsize = (*result)->ysize * (*result)->xsize; - psiconv_progress("Going to read 6 unused longs"); + psiconv_progress(lev+2,off+len,"Going to read 6 unused longs"); for (i = 0 ; i < 6; i++) { temp = psiconv_read_u32(buf,lev+2,off+len); if (temp != 0x00) { @@ -80,7 +81,7 @@ len = offset; datasize = size - len; - psiconv_progress(buf,lev+2,off+len,"Going to read the pixel data"); + psiconv_progress(lev+2,off+len,"Going to read the pixel data"); pixelnr = 0; datanr = 0; while ((datanr < datasize) && (pixelnr < picsize)) {