From 9186e6d16fafbe8e836419dbd29c6ae15ba08f86 Mon Sep 17 00:00:00 2001 From: Drew Wells Date: Sat, 27 Sep 2014 23:54:30 -0500 Subject: [PATCH] switch to GetVirtualPixels --- macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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