if (p->image)
p->image->common.functions.draw((void *) p->image);
if (p->common.callbacks.draw)
- p->common.callbacks.draw((void *) p); /*user defined drawing routines are called here. */
+ p->common.callbacks.draw(p); /*user defined drawing routines are called here. */
}
void glCompButtonClick(glCompObj * o, GLfloat x, GLfloat y,
void glCompImageDraw(void *obj)
{
- glCompImage *p = (glCompImage *) obj;
+ glCompImage *p = obj;
glCompCommon ref = p->common;
GLfloat w,h,d;
static cairo_status_t
writer(void *closure, const unsigned char *data, unsigned int length)
{
- if (length == fwrite(data, 1, length, (FILE *) closure)) {
+ if (length == fwrite(data, 1, length, closure)) {
return CAIRO_STATUS_SUCCESS;
}