Thanks Ian for the info :)
> #include <cairo.h>
Not needed all plafform dependent cairo-xxx.h includes already include it,
won't be a problem anyway, just useless here.
./..
> void test_box::set_cairo_cxt(int wo, int ho) {
> #ifdef WIN32
> #warning win32 mode
> /* Get a Cairo surface for the current DC */
> HDC dc = fl_gc; /* Exported by fltk */
> surface = cairo_win32_surface_create(dc);
Here's a little tip: you can destroy the surface just after creating the
cairo_t context, that's quite convenient if you happen encapsulate all that
terrible cairo initialization mess.
Fabien
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk