[cairo] patch to make fdclock build

Owen Taylor otaylor at redhat.com
Mon May 2 14:32:05 PDT 2005


On Sun, 2005-05-01 at 13:45 -0700, Evan Martin wrote:
> Attached is a patch to fdclock to make it build on my system.  Mostly
> fixes to use the new cairo_set_source_rgba.
> 
> There's one suspicious change: around line 100 of fdclock.c there was
> a call to set_alpha without a corresponding call to set_rgb_color. 
> It's just before the temporary surface is  to the back surface.  Is
> the source color used here?  I picked (1,1,1) and it seems to work but
> I don't know if my setup triggers that code path.

I don't think it works ... 

-       cairo_set_alpha (cr, opaque ? 1 : 0.8);
+       cairo_set_source_rgba (cr, 1, 1, 1, opaque ? 1 : 0.8);
 
        cairo_show_surface (cr, temp_surface, width, height);

needs to use some not-yet-landed (but soon to land): 

        cairo_set_source_surface (cr, temp_surface, 0, 0);
        cairo_paint_with_alpha (cr,  opaque ? 1 : 0.8);

Regards,
						Owen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050502/cb9efacd/attachment.pgp


More information about the cairo mailing list