From c5002f6ae0896091ab552421be7b839096d335fb Mon Sep 17 00:00:00 2001 From: b Date: Sun, 6 Nov 2022 00:16:36 +0100 Subject: [PATCH] fix some pointer & stuff --- core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core.c b/core.c index 9b9f1ce..b39df1c 100644 --- a/core.c +++ b/core.c @@ -438,7 +438,7 @@ int action_1picture ( return EINVAL; ilBindImage(picture[id].handle); - data = ilGetData; + data = ilGetData(); get_info(id, &info); switch (info.image_format) @@ -629,7 +629,7 @@ int action_1picture ( for ( x=x0, pixel_offset=line_offset+(x0*info.image_bytes_per_pixel); x < x0 + width; - ++x + ++x, pixel_offset += info.image_bytes_per_pixel ){ if ((x>=0)&&(x