[comp.windows.x] XDrawLines bug w/- linewidth > 0?

gnb@melba.bby.oz.au (Gregory N. Bond) (02/26/91)

I don't think I understand this....

I have a resizable window (the XtWindow() of a Simple widget) and I am 
using XDrawLines to draw a box round the edge of the window and 2
diagonal lines across it (mainly so I can see how big it is!)

When the GC linewidth is zero, it works fine irrespective of the size
or aspect ratio of the window.

When the linewidth is > 0, then the anti-slope diagonal (from top right
to bottom left) doesn't appear if the window is wider than it is high
(i.e. line at less than 45 degrees), but does appear if the window is
higher than it is wide (in pixels, of course!).

Is this a bug, or a known artifact of the line drawing algorithm?

(I'm running MIT X11R4, fix-18, compiled on a 3/80 with gcc, SunOs
4.0.3).
-- 
Gregory Bond, Burdett Buckeridge & Young Ltd, Melbourne, Australia
Internet: gnb@melba.bby.oz.au    non-MX: gnb%melba.bby.oz@uunet.uu.net
Uucp: {uunet,pyramid,ubc-cs,ukc,mcvax,prlb2,nttlab...}!munnari!melba.bby.oz!gnb