[cairo] Fwd: Re: Using Cairo functions instead of GDK functions

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


-------- Original Message --------
Subject: Re: [cairo] Using Cairo functions intead of GDK functions
Date: Fri, 13 May 2011 16:03:46 -0400
From: Behdad Esfahbod <behdad at behdad.org>
To: Emmanuel Thomas-Maurin <manutm007 at gmail.com>
CC: cairo at cairographics.org

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);

It's finally fixed using:

   gdk_cairo_set_source_pixmap(cr, pixmap, -x, 0);
   cairo_rectangle(cr, 0, 0, drw_a_width, drw_a_height);

Thanks.

Emmanuel Thomas-Maurin


More information about the cairo mailing list