Author: manolo
Date: 2012-05-02 07:22:52 -0700 (Wed, 02 May 2012)
New Revision: 9429
Log:
Using new fltk3::GraphicsDriver::vertex_kind() protected accessor function.

Modified:
   branches/branch-3.0/src/fltk3/vertex.cxx

Modified: branches/branch-3.0/src/fltk3/vertex.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/vertex.cxx    2012-05-02 14:04:25 UTC (rev 
9428)
+++ branches/branch-3.0/src/fltk3/vertex.cxx    2012-05-02 14:22:52 UTC (rev 
9429)
@@ -351,7 +351,7 @@
   // Last argument must be 0 (counter-clockwise) or it draws nothing under 
__LP64__ !!!!
   CGContextSetShouldAntialias(fl_gc, true);
   CGContextAddArc(fl_gc, xt, yt, (w+h)*0.25f, 0, 2.0f*M_PI, 0);
-  (what == POLYGON ? CGContextFillPath : CGContextStrokePath)(fl_gc);
+  (vertex_kind() == POLYGON ? CGContextFillPath : CGContextStrokePath)(fl_gc);
   CGContextSetShouldAntialias(fl_gc, false);
 }
 #elif defined(WIN32)
@@ -359,7 +359,7 @@
   int llx, lly, w, h;
   double xt, yt;
   prepare_circle(x, y, r, llx, lly, w, h, xt, yt);
-  if (what==POLYGON) {
+  if (vertex_kind()==POLYGON) {
     SelectObject(fl_gc, fl_brush());
     Pie(fl_gc, llx, lly, llx+w, lly+h, 0,0, 0,0); 
   } else
@@ -370,7 +370,7 @@
   int llx, lly, w, h;
   double xt, yt;
   prepare_circle(x, y, r, llx, lly, w, h, xt, yt);
-  (what == POLYGON ? XFillArc : XDrawArc)
+  (vertex_kind() == POLYGON ? XFillArc : XDrawArc)
   (fl_display, fl_window, fl_gc, llx, lly, w, h, 0, 360*64);
 }
 #endif

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to