FLTK logo

[branch-1.3] 6dd6378 - 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 ]

[branch-1.3] 6dd6378 - Fix fl_endpoints() for macOS platform that was not effective. "ManoloFLTK" Mar 13, 2021  
 
commit 6dd63788ed50dae882ec0c5d1a789b3b82b5e697
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sun Mar 14 08:22:10 2021 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sun Mar 14 08:22:24 2021 +0100

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

 src/fl_vertex.cxx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git src/fl_vertex.cxx src/fl_vertex.cxx
index d665ae4..788fbfe 100644
--- src/fl_vertex.cxx
+++ src/fl_vertex.cxx
@@ -120,9 +120,7 @@ void Fl_Graphics_Driver::end_points() {
 #elif defined(__APPLE_QUARTZ__)
   if (fl_quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(fl_gc, true);
   for (int i=0; i<n; i++) { 
-    CGContextMoveToPoint(fl_gc, p[i].x, p[i].y);
-    CGContextAddLineToPoint(fl_gc, p[i].x, p[i].y);
-    CGContextStrokePath(fl_gc);
+    point(p[i].x, p[i].y);
   }
   if (fl_quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(fl_gc, false);
 #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'.