Page 1 of 1

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

Posted: Tue Jul 19, 2016 12:14 am
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