04-25-2006, 11:50 PM
Is there something I'm missing here? This is supposed to operate so that you click somewhere, a dot is set there, and then you click somewhere else and a line is drawn between the two points. Sometimes the line is drawn, sometimes it isn't, and sometimes it's drawn in seemingly weird places.
[EDIT]Alright, there is something seriously wrong.
That code doesn't work. It initializes 320,200, but it ain't fullscreen. :o
Code:
screenres 320,200
setmouse 160,100
do until inkey$=chr$(27)
getmouse mousex,mousey,,mb
if mb then
pset (mousex,mousey),2
do
getmouse mousex2,mousey2,,mb2
if mb2 then exit do
loop
line (mousex,mousey)-(mousex2,mousey2),2
end if
loop
[EDIT]Alright, there is something seriously wrong.
Code:
screenres 320,200,8,2,1
sleep
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
--------------------------------------
Freebasic is like QB, except it doesn't suck.