]> bicyclesonthemoon.info Git - ott/enhance/commitdiff
fix some pointer & stuff
authorb <rowerynaksiezycu@gmail.com>
Sat, 5 Nov 2022 23:16:36 +0000 (00:16 +0100)
committerb <rowerynaksiezycu@gmail.com>
Sat, 5 Nov 2022 23:16:36 +0000 (00:16 +0100)
core.c

diff --git a/core.c b/core.c
index 9b9f1ce0cbef15adf57bd4e0a0a0a3c730c53c55..b39df1c7a1d7347c79c3abd787a4dbb49e7a549f 100644 (file)
--- 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<info.image_width))
                                                {