Page 1 of 1

DrawPath() bug without ANTIALIAS

Posted: Tue Sep 06, 2016 10:20 am
by sinisrus
It is a bug ?

Code: Select all

/* Nouveau projet Hollywood */

StartPath(1)

c=25
For i=0 To 640
LineTo(1,i,C)
IF C=25
C=-25
ELSE
C=25
ENDIF
Next

SetFormStyle(#ANTIALIAS) ; <============ Test with and without
DrawPath(1,0,250,#BLUE)

WaitLeftMouse 

/* Boucle infinie */
Repeat
        WaitEvent
Forever


Re: DrawPath() bug without ANTIALIAS

Posted: Wed Sep 07, 2016 9:15 pm
by airsoftsoftwair
Not a bug. You're using LineTo() without ever setting a current point. From the documentation of StartPath():
Once the new path is created, you should first define a current point for the path by calling the MoveTo() command. After that, you can start adding vertices to the path.

Re: DrawPath() bug without ANTIALIAS

Posted: Thu Sep 08, 2016 12:37 am
by sinisrus
Okay sorry