[cairo] Screen orientation
Jean-Claude Repetto
jcrml at mxm.eu
Mon Dec 10 13:38:28 PST 2007
Behdad Esfahbod wrote :
> On Mon, 2007-12-10 at 08:32 -0500, Jean-Claude Repetto wrote:
>
>> I am using Cairo in a handheld device with a LCD screen. The device has
>> a frame buffer, so I am using Cairo image surfaces to draw directly into
>> the frame buffer.
>> Unfortunately, some of the devices have been manufactured with a LCD
>> screen rotated of 90 degrees. I have tried to use a Cairo transformation
>> matrix. It works, but it is much slower.
>
> May it be the case that you are rotating around a pixel center instead
> of origin? I doubt that myself.
I am using :
cairo_rotate (cr, M_PI/2);
cairo_translate (cr, 0, -screen_width);
>
> Have fun with cairo!
Thanks !
Jean-Claude
More information about the cairo
mailing list