[5.42, 5.50 beta 3] AddPathCircle(..., #PB_Path_Connected)

Post bugreports for the Windows version here
Little John
Addict
Addict
Posts: 4786
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

[5.42, 5.50 beta 3] AddPathCircle(..., #PB_Path_Connected)

Post by Little John »

The following code is simplified after this post.

Code: Select all

If OpenWindow(0, 0, 0, 300, 250, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)   
   CanvasGadget(0, 0, 0, 300, 250)
   
   If StartVectorDrawing(CanvasVectorOutput(0))
      AddPathCircle(150, 150, 100, 180, 0)
      AddPathCircle(200, 150,  50, 0, 180, #PB_Path_CounterClockwise | #PB_Path_Connected)
      StrokePath(10)
      StopVectorDrawing()
   EndIf
   
   Repeat
      Event = WaitWindowEvent()
   Until Event = #PB_Event_CloseWindow
EndIf
Result on Windows (wrong):

Image
The bug is triggered by using the #PB_Path_Connected flag.


For comparison, correct output on Linux:

Image