[cairo] cairo_show_page vs win32

Alexander Larsson alexl at redhat.com
Tue Jan 31 04:00:16 PST 2006

How is cairo_show_page() meant to be implemented on win32? At the moment 
its not implemented at all, but for printint to work we really need it. 
Unfortunately the win32 API consists of a StartPage/EndPage pair, where 
you have to draw your stuff inbetween calling these.

It is possible to call StartPage when creating the surface from the HDC, 
and make cairo_show_page() do "EndPage(); StartPage();". However, this will 
cause an extra StartPage() to be called after the last page.

Is there a better way to handle this?

 Alexander Larsson                                            Red Hat, Inc 
                   alexl at redhat.com    alla at lysator.liu.se 
He's a jaded native American master criminal living undercover at Ringling 
Bros. Circus. She's a foxy green-skinned mercenary descended from a line of 
powerful witches. They fight crime! 

More information about the cairo mailing list