setwritemode not working with xorput
Brought to you by:
daniil_guit
when using:
setwritemode(xorput) ;
rectangle(100, 100, 150, 150);
sleep(3000);
rectangle( 100, 100, 150, 150);
The secound instruction of rectangle should remove the rectangle.
The correction to this seems is replace:
static void lineto_(int x, int y)
{
LineTo(activeDC, x, y);
SetPixelV(activeDC, x, y, translateColor(penColor));
}
to:
static void lineto_(int x, int y)
{
BEGIN_LINEDRAW
LineTo(activeDC, x, y);
LineTo(activeDC, x, y);
END_LINEDRAW
}
With best regards,
Luiz Curado