[cairo] Cairo Win32 draws only some simple lines.

Roman Bednarek roman at mikronika.com.pl
Thu Feb 7 01:33:34 PST 2013


Hello
    I am a new cairo user, and want to use it at the beginning on Windows
platform.
   Binaries which I found on GTK site version 1.10.2 are over a year old,
and use old msvcrt runtime, so I decided to compile current new version.
   The build was succesfull without problems, but my version does not work.

that code draws a line:
        cairo_set_source_rgb (cr, 0.0, 0.0, 1.0);
        cairo_set_line_width (cr, 10.0);
        cairo_move_to(cr, 100.0, 100.0);
        cairo_rel_line_to(cr, 0.0, 600.0);
        cairo_stroke (cr);

and this one does not:
        cairo_set_source_rgb (cr, 0.0, 0.0, 1.0);
        cairo_set_line_width (cr, 10.0);
        cairo_move_to(cr, 100.0, 100.0);
        cairo_rel_line_to(cr, 10.0, 600.0);
        cairo_stroke (cr);

it also does not draw a rectangle with alpha channel, cairo_status does
not return any error.
Both functions work with GTK binary.
    What can be wrong? How can I found out?

Thanks for any help

Roman Bednarek


More information about the cairo mailing list