Re: [RFC Patches] SHAPE extension support for lua

2009-07-27 Thread Julien Danjou
At 1248526738 time_t, Uli Schlachter wrote: I'm not sure if this code is ready to go in. E.g. there is no way to check if the SHAPE extension is available for lua code. Would we need something like this? What would this API look like. I don't think we need something like that. You just set

Re: [RFC Patches] SHAPE extension support for lua

2009-07-27 Thread Julien Danjou
At 1248526949 time_t, Uli Schlachter wrote: +// Convert an image to a 1bit pixmap +xcb_pixmap_t +image_to_1bit_pixmap(image_t *image, xcb_drawable_t d) +{ +xcb_pixmap_t pixmap; +xcb_gcontext_t gc; +xcb_image_t *img; +uint16_t width, height; + +width =

Re: [RFC Patches] SHAPE extension support for lua

2009-07-27 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Julien Danjou wrote: At 1248526949 time_t, Uli Schlachter wrote: +// Convert an image to a 1bit pixmap +xcb_pixmap_t +image_to_1bit_pixmap(image_t *image, xcb_drawable_t d) +{ +xcb_pixmap_t pixmap; +xcb_gcontext_t gc; +

Re: [RFC Patches] SHAPE extension support for lua

2009-07-27 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Julien Danjou wrote: At 1248687430 time_t, Uli Schlachter wrote: man XCreateGC says that The GC can be used with any destination drawable having the same root and depth as the specified drawable. What is the root of a pixmap? If it's the root

Re: [RFC Patches] SHAPE extension support for lua

2009-07-27 Thread Julien Danjou
At 1248526738 time_t, Uli Schlachter wrote: Pushed. Cheers, -- Julien Danjou // ᐰ jul...@danjou.info http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD // Anna Molly! Anna Molly! Anna Molly! signature.asc Description: Digital signature

Re: [RFC Patches] SHAPE extension support for lua

2009-07-25 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Uli Schlachter wrote: Hi list, these patches implement support for the SHAPE extension. ^ Nope, *these* patches (damn...). - -- Do you know that books smell like nutmeg or some spice from a foreign land?

Re: [RFC Patches] SHAPE extension support for lua

2009-07-25 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gregor Best wrote: On Sat, Jul 25, 2009 at 02:58:58PM +0200, Uli Schlachter wrote: [...] I'm not sure if this code is ready to go in. E.g. there is no way to check if the SHAPE extension is available for lua code. Would we need something like