Menu

#17 setwritemode not working with xorput

v1.0 (example)
open
nobody
None
5
2015-06-18
2015-06-18
Luiz Curado
No

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

Discussion


Log in to post a comment.