FLTK logo

[master] ce142e8 - Fix fl_endpoints() for macOS platform that was not effective.

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] ce142e8 - Fix fl_endpoints() for macOS platform that was not effective. "ManoloFLTK" Mar 13, 2021  
 
commit ce142e80dfe56e90d922649fa43e577a609dc1af
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sat Mar 13 20:06:18 2021 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sat Mar 13 20:06:28 2021 +0100

    Fix fl_endpoints() for macOS platform that was not effective.

 src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx
index 56f7e7a..2e85f3f 100644
--- src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx
+++ src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx
@@ -28,13 +28,9 @@
 
 
 void Fl_Quartz_Graphics_Driver::end_points() {
-  if (quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(gc_, true);
-  for (int i=0; i<n; i++) {
-    CGContextMoveToPoint(gc_, p[i].x, p[i].y);
-    CGContextAddLineToPoint(gc_, p[i].x, p[i].y);
-    CGContextStrokePath(gc_);
+  for (int i = 0; i < n; i++) {
+    point(p[i].x, p[i].y);
   }
-  if (quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(gc_, false);
 }
 
 void Fl_Quartz_Graphics_Driver::end_line() {
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'.