[cairo] Using Cairo functions intead of GDK functions

Emmanuel Thomas-Maurin manutm007 at gmail.com
Fri May 13 13:55:12 PDT 2011


On 05/13/2011 10:03 PM, Behdad Esfahbod wrote:
> On 05/13/11 15:29, Emmanuel Thomas-Maurin wrote:
>>   gdk_cairo_set_source_pixmap(cr, pixmap, 0, 0);
> 
> 
> Perhaps:
> 
>    gdk_cairo_set_source_pixmap(cr, pixmap, x, 0);
> 
> or
> 
>    gdk_cairo_set_source_pixmap(cr, pixmap, -x, 0);
> 
> 
>>   cairo_rectangle(cr, x, 0, drw_a_width, drw_a_height);

With -x, it works on the second half of the drawing area. This is quite
confusing.

-- 
Emmanuel Thomas-Maurin <manutm007 at gmail.com>


More information about the cairo mailing list