[Xcb] xcb_poly_rectangle width and height
trebol55555 at yandex.ru
trebol55555 at yandex.ru
Tue Apr 19 03:18:03 UTC 2016
I don't understand the design of these requests (I'm talking about the
X server).
PolyRectangle:
You say to the server: draw a rectangle at (x, y) with width "width"
and height "height". And the server draws a five-point PolyLine:
[x,y] [x+width,y] [x+width,y+height] [x,y+height] [x,y],
That is, a rectangle of width "width" + 1 and height "height" + 1
???????????
---------------------
---------------------
PolyFillRectangle:
You say to the server: fill a rectangle at (x, y) with width "width"
and height "height". And the server draws and fill a rectangle at (x,
y) with width "width" and height "height". Good? Noooo! It's even worst,
because what the server is doing is filling the FillPoly:
[x,y] [x+width,y] [x+width,y+height] [x,y+height] [x,y],
but in this awkward way, if this is the rectangle specified by these
points
ooooooo
o o
o o
ooooooo
the server draw this (only #):
######o
######o
######o
ooooooo
Am I missing something?
It's like a joke!
More information about the Xcb
mailing list