DrawPath() bug without ANTIALIAS

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

DrawPath() bug without ANTIALIAS

Post by sinisrus » Tue Sep 06, 2016 10:20 am

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: 3355
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: DrawPath() bug without ANTIALIAS

Post by airsoftsoftwair » Wed Sep 07, 2016 9:15 pm

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: 269
Joined: Tue Apr 21, 2015 5:43 pm

Re: DrawPath() bug without ANTIALIAS

Post by sinisrus » Thu Sep 08, 2016 12:37 am

Okay sorry

Post Reply