I've stumbled upon a rasterization bug while drawing lines of width 1.
Here is some example code:
#include <X11/Xlib.h>
XPoint points[] = {
{21, 17},
{24, 14},
{24, 9},
};
int main (int argc, char **argv)
{
Display *d;
Window w;
GC gc;
XGCValues values;
d = XOpenDisplay (NULL);
w = XCreateSimpleWindow (d, DefaultRootWindow(d), 0, 0,
50, 50, 0,
BlackPixel(d,DefaultScreen(d)),
WhitePixel(d,DefaultScreen(d)));
values.foreground = BlackPixel(d,DefaultScreen(d));
values.line_width = 1;
gc = XCreateGC (d, w, GCForeground | GCLineWidth, &values);
XMapWindow (d, w);
XSync (d, False);
sleep (2);
XDrawLines(d, w, gc, points, 3, CoordModeOrigin);
XSync (d, False);
sleep (10);
return 0;
}
On my XFree 4.1.0 (from Red Hat 7.2) G400 server it draws:
*
*
*
*
*
*
*
*
I.E. The pixel at position (24,14) is never drawn.
Any ideas about this?
/ Alex
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert