diff --git a/pixler.bas b/pixler.bas index f048983..cedc679 100644 --- a/pixler.bas +++ b/pixler.bas @@ -276,7 +276,20 @@ sub canvas _source 0 exit sub end if - + + if state.tool = 10 and (mouseclicked or rmouseclicked) then + _dest layers(1).ihandle + _source layers(1).ihandle + if mouseclicked then + state.fcolor=point(canX,canY) + else + state.bcolor=point(canX,canY) + end if + _dest 0 + _source 0 + exit sub + end if + if state.tool = 7 or state.tool = 8 then if mouseclicked then polypoints(pointCount * 2) = canX