-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Uli Schlachter wrote:
> Julien Danjou wrote:
>> At 1243673434 time_t, Uli Schlachter wrote:
>>> Looking at the current image lua API, I kinda doubt that it's worth to use 
>>> this
>>> for generating a 1bit pixmap. Plus, if a window is resized you pretty much 
>>> have
>>> to set a new pixmap. Everything else would look ugly or make the resize 
>>> pointless.
>> We could adapt image API for such a case.
> 
> I just looked into this again. It looks like I can't to a 1-bit depth pixmap
> with cairo which means cairo is a no-go here, so I would have to transfer the
> shape to the X server via xcb_poly_point() which sucks. E.g. for a 15x1050 
> wibox
> this would mean drawing 15.750 points. If I wanted a fullscreen wibox
> (1680x1050) with some fancy shape (a debian swirl shaped wibox? Dunno...) I
> would need 1.764.000 xcb_point_ts. I didn't do any benchmarks on this, but I
> kinda doubt that this would have nice results...

*headdesk*

I just found xcb_put_image() which sounds way more appropriate for this. I still
think that drawing directly to a pixmap would be 'better', but at least there is
an usable alternative...
- --
"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)

iQEcBAEBCAAGBQJKNgbKAAoJECLkKOvLj8sG/zkH/3b1RfMOXntKR2oUecszubvz
d16Sw+Cd3ZYWuf4imTC3tgM+Zn9NzN13wy1qxwKUPwF+XEvWi5lOaFToKghEn61j
W3TiQhtGnCclZbJOtGb/PMRcc51X98dOgfliQEnbSAHCM3CAVEsnUTswSRK6XMpT
C8SYpogSOMgcPKYEz2/z40pmCvmDaFs2jkQmhtMmY1u6bvixcyLvIApPEuw6Be8R
D/okTpIcIEPdAfpWlO/I2H0e3anB7yoe/L5ssXyNBluX5zhw+ub2r/ps1BU77P/r
FmKBT/b9PeFXNvXUTz2i+xZQEhu4rq5A1GRZY12JfW2w4nzJWtXrBM2qZanFXB8=
=sZ0K
-----END PGP SIGNATURE-----

-- 
To unsubscribe, send mail to [email protected].

Reply via email to