Xrender related question

2009-02-23 Thread Alexei Babich
Hello, all. Having executed a piece of code listed below, I get a green window (as a result of calling XCreateSimpleWindow()) and a black rectangle on top of it (XRenderFillRectangle()). I still get just black, whatever color I set in the 'col' structure. XRenderFindVisualFormat() points to

Re: Xrender related question

2009-02-23 Thread Thomas Jaeger
Alexei Babich wrote: Hello, all. Having executed a piece of code listed below, I get a green window (as a result of calling XCreateSimpleWindow()) and a black rectangle on top of it (XRenderFillRectangle()). I still get just black, whatever color I set in the 'col' structure.

Re: Xrender related question

2009-02-23 Thread Alexei Babich
XRender uses 16-bit colors. Oh, I read the documentation inattentively. Silly mistake. Thank you. Also, unless there is a specific reason to use XRender directly, I would recommend using the higher-level cairo library instead. Thank you. I believe the use of XRender more appropriate for my