[cairo] W32: Drawing globally-transparent stuff with cairo

LRN lrn1986 at gmail.com
Sat Mar 29 15:29:33 PDT 2014


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

On 27.03.2014 19:54, LRN wrote:
> I've been trying to somehow hack GTK to have RGBA GdkWindows, with
>  mixed results so far (i either get massive alpha corruption, or 
> crash pixman inside bitblt).
> 
> Decided to take a step back and see if i can make it work 100% 
> correctly with just GDI & cairo. Turns out, i can't.
> 
> I've attached an example, compile with gcc main.c -o main.exe 
> -I/mingw/include/cairo -lcairo -lgdi32 -ldwmapi
> 
> It draws two gradients - one transparent, and one opaque. 
> Transparency only works when window is invalidated and repainted 
> (such as when it is obscured by another window and later shown 
> again).
> 
> The problem is most likely W32-specific, and not directly related 
> to cairo, but i simply can't find what is wrong :(
> 

I'd like to thank everyone for the help.

The problem was mostly in W32 display config (glass transparency not
enabled).

I'm now convinced that the rest of my problems are due to a bug in
cairo/pixman.

GTK bug tracking this is:
https://bugzilla.gnome.org/show_bug.cgi?id=727316

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

iQEcBAEBAgAGBQJTN0lMAAoJEOs4Jb6SI2CwfsAH/22k6m5bodJgsFIGLjfS3rCT
W7pP4t85R5Jvg02HT/O0l1+OcoOTol0tl7MUMRX7i8xqgDor026BxeMSYSPki8Vu
/6ZjhNBV9iZrVViKjQ9TE3CJ3rtiiH0+YyocdLTWlfy4RC6UJevN3CJTDfGGbSP/
h/r+ToqXmim99vtWhT52UlIuflYEzox4Uxwu/aPkAsc+I6Hxy4dEOdhpawu6n5Up
pNIvQqtg3cQakPQqKGG4joO4mD+ylnO/QH5TNR3FuovKuc5TSLFvIDiYqauYUkQ5
9Hdr03VN74LN7y5nMcnoFOL4Dh8gVAVDE/HOdsckjzu1hALMSg8vDVjsUHmI6e8=
=ptyx
-----END PGP SIGNATURE-----


More information about the cairo mailing list