"KARASIK via RT" <bug-Prima@rt.cpan.org> writes:
Show quoted text>
> Just tested on a more-or-less latest ubuntu, can confirm the bug, but it
> seems that the bug is on X server side - and moreover, only gets
> manifested if the ellipse is drawn on an image or a bitmap, but NOT on a
> window.
That's a bit strange. (I'd have guessed the other way around, if the
window ones went to hardware acceleration that doesn't follow the strict
X model ...)
Show quoted text> The question is, what is to be done about it. If the bug is
> limited only to height==1 on images, then I guess that could be detected
> at runtime that and an extra pixel drawn. But, judging by your other bug
> with XFillArc, #63392, there are other problems with small arcs,
I think that one is due to passing 1 too big to XFillArc.
Show quoted text> I'd hate to say that these two are
> Xorg bug, but it seems like it.
Maybe it's a feature. Passing h=0 to XDrawArc may interpret line width
"tangent to the line" to mean vertical and horizontal only, not a
rounded half-circle at each end. If that was so then the "centre on the
boundary" rule would correctly exclude the rightmost pixel (or
bottommost if vertical).
You'd think half-circle ends would be included, but maybe that's not a
part of the server anyone has thought about :-). My best idea would
still be per other message to treat a filled ellipse of width<=2 or
height<=2 as a rectangle.
--
The electronic delivery strategy makes it possible to deliver things
electronicaly.