From: Nick Bowler Date: Wed, 10 Feb 2010 06:24:37 +0000 (-0500) Subject: lbxgui: Fix pointer type error. X-Git-Url: https://git.draconx.ca/gitweb/liblbx.git/commitdiff_plain/5fb804f880836324897bc519615625410720d886 lbxgui: Fix pointer type error. 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. --- diff --git a/src/gui/lbxgui.c b/src/gui/lbxgui.c index 8321850..2ce714f 100644 --- a/src/gui/lbxgui.c +++ b/src/gui/lbxgui.c @@ -455,7 +455,7 @@ static void init_background(GdkDrawable *drawable) 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);