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 the data field shown on the screenshot attached to this letter. Why doesn't the color of the rectangle depend on the 'col' parameters?
Thank you. ---- XRenderColor col; //create simple window (near green background color) at x,y = (20,30) and width,height = (300,200) abc = XCreateSimpleWindow(display, DefaultRootWindow(display), 20,30, 300,200,0,0,30000); XMapWindow(display, abc); //create default picture pict = XRenderCreatePicture(display, abc, XRenderFindVisualFormat(display, visual), 0, NULL); //some color col.red = 0; col.green = 127; col.blue = 250; col.alpha = 250; //fill rectangle at x,y=(20,30) and width,height=(40,50) with selected color XRenderFillRectangle(display, PictOpSrc, pict, &col, 20,30,40,50); ---- -- Regards, Alexei Babich, circuit engineer, OOO NPP "Rezonans", Chelyabinsk, Russia http://www.rez.ru Jabber ID: [email protected]
<<attachment: test1_.png>>
_______________________________________________ xorg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xorg
