FLTK logo

[master] 70e19a9 - Fix dotted line drawing under Cairo graphics driver

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] 70e19a9 - Fix dotted line drawing under Cairo graphics driver "ManoloFLTK" Dec 02, 2022  
 
commit 70e19a9e007f38aee308b0669caf1e219f2ae7b6
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sat Dec 3 06:38:25 2022 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sat Dec 3 06:38:25 2022 +0100

    Fix dotted line drawing under Cairo graphics driver

 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 26eb5bc..590287e 100644
--- src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
+++ src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
@@ -332,6 +332,7 @@ void Fl_Cairo_Graphics_Driver::line_style(int style, int width, char* dashes) {
     }
   }
   cairo_set_dash(cairo_, ddashes, l, 0);
+  cairo_set_antialias(cairo_, l ? CAIRO_ANTIALIAS_NONE : CAIRO_ANTIALIAS_DEFAULT);
   delete[] ddashes;
   check_status();
 }
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'.