diff --git a/macros.h b/macros.h index 58fce93..872b944 100644 --- a/macros.h +++ b/macros.h @@ -2,9 +2,9 @@ #define ACQUIRE_IMAGE_PIXELS(im, x, y, w, h, ex) ({ \ _Pragma("GCC diagnostic push") \ _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \ - AcquireImagePixels(im, x, y, w, h, ex); \ + GetVirtualPixels(im, x, y, w, h, ex); \ _Pragma("GCC diagnostic pop") \ }) #else -#define ACQUIRE_IMAGE_PIXELS(im, x, y, w, h, ex) AcquireImagePixels(im, x, y, w, h, ex) +#define ACQUIRE_IMAGE_PIXELS(im, x, y, w, h, ex) GetVirtualPixels(im, x, y, w, h, ex) #endif