Page 1 of 1

xmouse, and ymouse

PostPosted: Thu Feb 01, 2007 1:28 pm
by Sgt. Sparky
hey, I was drawing rectangles wtih xmouse and ymouse stuff. :D somtimes when I do it the rectangle is not drawn at xmouse and ymouse positions and other times it is.... why is that? :(
EDIT: here is the
Code: Select all

if (Pen == 2)
{
 moveto(LineStart.xscreen, LineStart.yscreen);
 lineto(Rxy.xscreen, LineStart.yscreen);
 lineto(Rxy.xscreen, Rxy.yscreen);
 lineto(LineStart.xscreen, Rxy.yscreen);
 lineto(LineStart.xscreen, LineStart.yscreen);
}

EDIT 2: I had changed it from xmouse and ymouse to Rxy.xscreen and Rxy.yscreen :D