colormaps
- From: Russell Shaw <rjshaw iprimus com au>
- To: gtk-app-devel-list gnome org
- Subject: colormaps
- Date: Fri, 17 Oct 2003 02:00:53 +1000
Hi,
In an expose-event callback of a gtk_drawing_area this always paints
a black region even tho i have it set for white:
gdk_draw_rectangle(widget->window,
background_gc,
TRUE,
event->area.x,
event->area.y,
event->area.width,
event->area.height);
I set up the graphics context as:
background_gc=gdk_gc_new(drawing_area->window);
foreground.red=0;
foreground.green=0;
foreground.blue=0;
background.red=0xffff;
background.green=0xffff;
background.blue=0xffff;
gdk_gc_set_foreground(background_gc,&background);
gdk_gc_set_background(background_gc,&background);
gdk_gc_set_function(background_gc,GDK_COPY);
Would i need to do something with creating a new GdkColormap to make it work?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]