Re: [PATCH] example for gtk-demo demonstrating offscreen-rendered widgets with reflection-effect



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]