fillpoly malfunction

Mon, 13 Jun 2016 08:43:42 EDT
aiju@[REDACTED]

The following case seems to break fillpoly. Poly does not seem to be affected. Note that the two sides appear to be vertical, when they are not supposed to be.

include <u.h>

include <libc.h>

include <draw.h>

void main(int argc, char **argv) {

Point p[] = {{100, 100},
    {197, 126},
    {196, 132},
    {99, 106}};

initdraw(nil, nil, nil);
fillpoly(screen, p, 4, 0, display-&#62;black, ZP);
flushimage(display, 1);
for(;;);

}