<div dir="ltr">Hello everyone,<br><br>I started few days ago a gui creation with Xlib,
but i found xcb yesterday and decided try it. I modified my code quiet
easily (it wasn't really long) except for the color. How should i
replace <br>
XAllocColor(WinInf->dpy, WinInf->cmap, &c);<br> XSetForeground(WinInf->dpy, WinInf->gc, c.pixel);<br><br>I tried by using xcb_alloc_color but i didn't succeed (all my drawings were black).<br><br>
Any idee?<br>Else, is there a simple example just drawing colored points in an empty window?<br><br>thanks in advance!</div>