aboutsummaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-11-20 12:32:01 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-03-08 11:27:55 +0100
commitf2c664a04fa6cf49b3719a0cc4c59f57bab04948 (patch)
treef0f9fe151dcb2260b953d3bc840bae6b3796a1a6 /color.c
parentf897a5ee212491ea5d0560eeb1ca4f6bcfbfe111 (diff)
downloadfbida-f2c664a04fa6cf49b3719a0cc4c59f57bab04948.tar.gz
use pixman images for storage
Diffstat (limited to 'color.c')
-rw-r--r--color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/color.c b/color.c
index 510b16d..35a3713 100644
--- a/color.c
+++ b/color.c
@@ -70,7 +70,7 @@ color_calchist(struct ida_image *img, struct ida_coledit *me)
unsigned char *pix;
unsigned int i,x,y,max;
- pix = img->data;
+ pix = (void*)pixman_image_get_data(img->p);
for (y = 0; y < img->i.height; y++) {
for (x = 0; x < img->i.width; x++) {
me->red.data[pix[0]]++;