The XBM format is an array of unsigned char, yet for some reason
unknown to me, the gdk_bitmap_create_from_data function wants a
char pointer. Add the appropriate cast.
bg_gc = gdk_gc_new(canvas->window);
bg_gc = gdk_gc_new(canvas->window);
- bitmap = gdk_bitmap_create_from_data(drawable, bg_bits,
+ bitmap = gdk_bitmap_create_from_data(drawable, (gchar *)bg_bits,
bg_width, bg_height);
gdk_gc_set_stipple(bg_gc, bitmap);
bg_width, bg_height);
gdk_gc_set_stipple(bg_gc, bitmap);