DrawPath() bug without ANTIALIAS

Report any Hollywood bugs here
Post Reply
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

DrawPath() bug without ANTIALIAS

Post 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

User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: DrawPath() bug without ANTIALIAS

Post 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.
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Re: DrawPath() bug without ANTIALIAS

Post by sinisrus »

Okay sorry
Post Reply