I'm trying to a get a pointer to my raster pixel data here, in cairo. But the problem is more of a broader c one. I hope Laser is around, she'll know this one. The second line of code is throwing a 'initialization makes pointer from integer without a cast'
Code:
cairo_rectangle_int_t *rect = &(cairo_rectangle_int_t){100, 100, 1, 1}; // COMPILES FINE
cairo_surface_t *image=cairo_surface_map_to_image(surface , rect); // THIS BARFS
I tried passing &rect into the initializer, that didn't work. Any ideas. Thanks. - Javaeyes