FLTK logo

[master] 87c8b98 - Wayland platform: fix for issue #512 with fl_arc().

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 87c8b98 - Wayland platform: fix for issue #512 with fl_arc(). "ManoloFLTK" Oct 11, 2022  
 
commit 87c8b98a98e9199205364730632b7b6c7665e3e3
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Oct 12 06:12:07 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Oct 12 06:12:07 2022 +0200

    Wayland platform: fix for issue #512 with fl_arc().

 src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
index f2f43d7..01ef45e 100644
--- src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
+++ src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
@@ -467,6 +467,7 @@ void Fl_Cairo_Graphics_Driver::circle(double x, double y, double r){
 void Fl_Cairo_Graphics_Driver::arc(double x, double y, double r, double start, double a){
   if (what == NONE) return;
   gap_ = 0;
+  cairo_new_sub_path(cairo_);
   if (start > a)
     cairo_arc(cairo_, x, y, r, -start*M_PI/180, -a*M_PI/180);
   else
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.