CompuServe Thread

#SetDrMd()

2 messages in this thread
#58857From: Ed SilvaMar 14, 1987 6:05 AM
I am trying to do a "rubberband" similar to what a paint,cad program does. i tried to use the COMPLEMENT mode and then the JAM1 mode,here is a sample Line() { line=TRUE; SetDrMd(RastPort,COMPLEMENT); SetAPen(RastPort,red); while(line) { getintuimessage…..; ReplyMsg(message); if(mycode==SELECTUP)line=FALSE; Drawline(); Drawline(); } SetDrMd(RastPort,JAM1); Drawline(); } the function does draw a line at the end…but when you have not released the mousebutton the screen still blank!!!. what am i doing wrong???? Ed.
#58873From: Dave Haynie/C128 LandMar 14, 1987 10:30 AM
Ed, Try a little delay between the two Drawline()'s like… WaitBOVP(ViewPort) or WaitTOF. best, Rick Sterling