-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Julien Danjou wrote:
> At 1245761941 time_t, Uli Schlachter wrote:
>> Uhm, how would I do that? I would need to do some evil math with cos and sin
>> for
>> this and then loop through the single pixels...
>
> I'm not a geometry expert but if you need to draw a top left corner:
> +----+
> |1 / |
> |/ 2 |
> +----+
> (1 is being "transparent", 2 opaque)
>
> So you just have to draw a rectangle of "tranparent" and then draw part
> 2 (as you do already) in "opaque".
> Or do I miss something?
Hm, that's quite similar to what I am doing already, but I think your way is a
littler better. I'll implement this. :)
(And I bet this is again a little, unmeasurable bit faster :)
>>> Otherwise, the code seems quite clean and clear, I just do not know
>>> anything about XShape so I can't really judge.
>>> I still wonder what is cliping and bounding... ? :)
>> Heh, second try:
>> If you just want an arbitrary shaped window, set the bounding shape and be
>> done.
>> If you want a shaped window with a border, the clipping shape is the content
>> area and the bounding shape the border area and the content area together.
>>
>> If this still doesn't make this clear, I'll have to start doing some
>> screenshots
>> with examples which I could then add to the wiki as a start of documenting
>> this.
>
> Would be a wonderful idea, but I think I got it, if border is what I
> think it is (a X border).
Yeah, it is. I guess I better start doing some screenshots, give me a minute (or
two)...
Cheers,
Uli
- --
"Do you know that books smell like nutmeg or some spice from a foreign land?"
-- Faber in Fahrenheit 451
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iQEcBAEBCAAGBQJKQNm5AAoJECLkKOvLj8sGLIMH/j9w02KuiTADIKU8XkV/vHVw
CqEb0YlbYIakkGskmo6+/6g+zp7CkdXDNXiIBl8lc+iCBUtqLZkO2hpEBSOBBl2T
l8clErUNWR7i8Z3uE80J0IasiEavmXrWu7j3d4C5LaJE5ij6abK6WGIhxlbSVxLs
BEjItvvfi5soHFfLqIHLs1kzMxrum1XSMWEEpLzVExgkXQbXeXYr+SazCcR8iS/s
Ora4uimJMTsvEzjb9ivTwMMwsFk0OkRcMvJYnQyX/H2MkpV8Scu2u670uiaQr7SO
2eEE26Mzg180R+p5aR3PklfZYbhFb6BTKb75erJvC0dLvECmultWe9so1NzoHJ4=
=gXXJ
-----END PGP SIGNATURE-----
--
To unsubscribe, send mail to [email protected].