[cairo] cairo_surface_create_similar_image() crashes on W32

LRN lrn1986 at gmail.com
Mon Aug 26 05:44:08 PDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26.08.2013 15:12, Chris Wilson wrote:
> Is it safe to call BeginPaint/EndPaint
> outside of WndProc?

Quoting MSDN[1]:
> An application should not call BeginPaint except in response to a
> WM_PAINT message

Note that it may or may not be necessary to use a surface derived from a
HDC. I don't know cairo well enough to judge, but since the problem was
related to the check of object relations, i reckon that you might be
able to re-write this with a surface that does not depend on HDC.

[1]
http://msdn.microsoft.com/en-us/library/windows/desktop/dd183362%28v=vs.85%29.aspx

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJSG02YAAoJEOs4Jb6SI2CwujMH/i7GCHJcKEbpyxCsxwbNb/KU
MUquq+6h23MY1QiHYq9veJKnOqFf8nBubaHedawVpwePPfGzf624MrfS4AKAWAOi
LdPSNj6CvJf33YAcXuXud1a4tsFGIVrzZT+M1OajrGDBZXwQPuD0KHdbfrB85MW0
qZwrIxQoPNLhZpNTJCkJACojsw+5XTHSs5ZAIuX5430MRcPLhWqDw0VWnRxRvBdF
QPgfGS0rxN5YhI61cRuL1+2By4THKp0/kxRw6qnf5W3AvZHtZGj8g6s2wglMhyWK
j92J4CD6KVHzB+dM6+/dsjfU4lGm1oUDZcgIR5iiLoVmY7djIIAR+aBFPP04qUQ=
=LEDu
-----END PGP SIGNATURE-----


More information about the cairo mailing list