Re: [gtk-list] Re: Drawing in GtkDrawingArea
- From: Federico Mena Quintero <federico nuclecu unam mx>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Drawing in GtkDrawingArea
- Date: Sun, 29 Nov 1998 21:46:58 -0500
> color->pixel = (gulong)(pixel.red()*65536 + pixel.green()*256 + pixel.blue());
This is not useful at all, since gdk_color_alloc() will fill in the
pixel field for you. Is this code taken from somewhere like the Gtk
tutorial? People seem to be doing it a lot...
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]