Re: [PATCH] example for gtk-demo demonstrating offscreen-rendered widgets with reflection-effect
- From: Sven Neumann <sven gimp org>
- To: Mirco Müller <macslow bangang de>
- Cc: gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: [PATCH] example for gtk-demo demonstrating offscreen-rendered widgets with reflection-effect
- Date: Sun, 23 Dec 2007 14:56:27 +0100
Hi,
On Sat, 2007-12-22 at 21:22 +0100, Mirco Müller wrote:
> + color[0] = (gdouble) style->bg[GTK_STATE_NORMAL].red;
> + color[1] = (gdouble) style->bg[GTK_STATE_NORMAL].green;
> + color[2] = (gdouble) style->bg[GTK_STATE_NORMAL].blue;
> + color[0] /= (gdouble) 0xFFFF;
> + color[1] /= (gdouble) 0xFFFF;
> + color[2] /= (gdouble) 0xFFFF;
> + cairo_set_source_rgb (cr, color[0], color[1], color[2]);
You probably want to use gdk_cairo_set_source_color() instead.
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]