Re: [gtk-list] Re: Problem adding GdkRgb
- From: Havoc Pennington <rhp zirx pair com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Problem adding GdkRgb
- Date: Mon, 10 May 1999 15:55:16 -0400 (EDT)
On Mon, 10 May 1999, D. Jackson Peacock wrote:
>
> gdk_draw_rgb_image_core (drawable, gc, x, y, width, height,
> rgb_buf, 3, rowstride, image_info->conv, NULL,
> 0, 0);
>
> All the values it's trying to pass are sane except that image_info is
> NULL, so it can't get to image_info->conv. image_info is a static variable
> of type (GdkRgbInfo *) in gdkrgb.c and is not set anywhere in the
> gdk_draw_rgb_image function. Do I need to make some kind of call to set up
> the rgb buffer before I try to us it?
Oh, you just need to call gdk_rgb_init() at the beginning of your program
(right after gtk_init()).
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]