From: b Date: Sat, 5 Nov 2022 23:16:36 +0000 (+0100) Subject: fix some pointer & stuff X-Git-Url: http://bicyclesonthemoon.info/git-projects/?a=commitdiff_plain;h=c5002f6ae0896091ab552421be7b839096d335fb;p=ott%2Fenhance fix some pointer & stuff --- 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