Re: cairo_surface_create_similar_image() crashes on W32

LRN <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
-----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-----
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.