} format_type;
static int writer(const uint8_t* data, size_t data_size, const WebPPicture* const pic) {
- return (gvwrite((GVJ_t *)pic->custom_ptr, (const char *)data, data_size) == data_size) ? 1 : 0;
+ return (gvwrite(pic->custom_ptr, (const char *)data, data_size) == data_size) ? 1 : 0;
}
static void webp_format(GVJ_t * job)
stride = 4 * job->width;
picture.writer = writer;
- picture.custom_ptr = (void*)job;
+ picture.custom_ptr = job;
preset = WEBP_PRESET_DRAWING;
/* paint image into required location in graph */
static void webp_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled)
{
- cairo_t *cr = (cairo_t *) job->context; /* target context */
+ cairo_t *cr = job->context; /* target context */
cairo_surface_t *surface; /* source surface */
surface = webp_loadimage(job, us);