summaryrefslogtreecommitdiff
path: root/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-02-19 12:40:24 +0000
committerManolo Gouy <Manolo>2016-02-19 12:40:24 +0000
commit1b5e231c902ab198c577989db44946797ebd4893 (patch)
tree211751e0eceda308df4e51d94511362f5e0b55f6 /src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx
parent6d766cc6814a9e7a04c0b147c7a3cbdc0817dfd4 (diff)
Rename Fl_Graphics_Driver::set_gc(void*) to gc(void*) and Fl_Graphics_Driver::get_gc() to gc().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx')
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx
index 6400c5056..1ff8755e8 100644
--- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx
@@ -41,13 +41,13 @@ void Fl_Quartz_Graphics_Driver::vertex(double x,double y) {
}
void Fl_Quartz_Graphics_Driver::end_points() {
- if (fl_quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(gc, true);
+ if (fl_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);
+ CGContextMoveToPoint(gc_, p[i].x, p[i].y);
+ CGContextAddLineToPoint(gc_, p[i].x, p[i].y);
+ CGContextStrokePath(gc_);
}
- if (fl_quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(gc, false);
+ if (fl_quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(gc_, false);
}
void Fl_Quartz_Graphics_Driver::end_line() {
@@ -56,12 +56,12 @@ void Fl_Quartz_Graphics_Driver::end_line() {
return;
}
if (n<=1) return;
- CGContextSetShouldAntialias(gc, true);
- CGContextMoveToPoint(gc, p[0].x, p[0].y);
+ CGContextSetShouldAntialias(gc_, true);
+ CGContextMoveToPoint(gc_, p[0].x, p[0].y);
for (int i=1; i<n; i++)
- CGContextAddLineToPoint(gc, p[i].x, p[i].y);
- CGContextStrokePath(gc);
- CGContextSetShouldAntialias(gc, false);
+ CGContextAddLineToPoint(gc_, p[i].x, p[i].y);
+ CGContextStrokePath(gc_);
+ CGContextSetShouldAntialias(gc_, false);
}
void Fl_Quartz_Graphics_Driver::end_loop() {
@@ -77,13 +77,13 @@ void Fl_Quartz_Graphics_Driver::end_polygon() {
return;
}
if (n<=1) return;
- CGContextSetShouldAntialias(gc, true);
- CGContextMoveToPoint(gc, p[0].x, p[0].y);
+ CGContextSetShouldAntialias(gc_, true);
+ CGContextMoveToPoint(gc_, p[0].x, p[0].y);
for (int i=1; i<n; i++)
- CGContextAddLineToPoint(gc, p[i].x, p[i].y);
- CGContextClosePath(gc);
- CGContextFillPath(gc);
- CGContextSetShouldAntialias(gc, false);
+ CGContextAddLineToPoint(gc_, p[i].x, p[i].y);
+ CGContextClosePath(gc_);
+ CGContextFillPath(gc_);
+ CGContextSetShouldAntialias(gc_, false);
}
void Fl_Quartz_Graphics_Driver::begin_complex_polygon() {
@@ -108,13 +108,13 @@ void Fl_Quartz_Graphics_Driver::end_complex_polygon() {
return;
}
if (n<=1) return;
- CGContextSetShouldAntialias(gc, true);
- CGContextMoveToPoint(gc, p[0].x, p[0].y);
+ CGContextSetShouldAntialias(gc_, true);
+ CGContextMoveToPoint(gc_, p[0].x, p[0].y);
for (int i=1; i<n; i++)
- CGContextAddLineToPoint(gc, p[i].x, p[i].y);
- CGContextClosePath(gc);
- CGContextFillPath(gc);
- CGContextSetShouldAntialias(gc, false);
+ CGContextAddLineToPoint(gc_, p[i].x, p[i].y);
+ CGContextClosePath(gc_);
+ CGContextFillPath(gc_);
+ CGContextSetShouldAntialias(gc_, false);
}
void Fl_Quartz_Graphics_Driver::circle(double x, double y,double r) {
@@ -129,10 +129,10 @@ void Fl_Quartz_Graphics_Driver::circle(double x, double y,double r) {
// Quartz warning: circle won't scale to current matrix!
// Last argument must be 0 (counter-clockwise) or it draws nothing under __LP64__ !!!!
- CGContextSetShouldAntialias(gc, true);
- CGContextAddArc(gc, xt, yt, (w+h)*0.25f, 0, 2.0f*M_PI, 0);
- (what == POLYGON ? CGContextFillPath : CGContextStrokePath)(gc);
- CGContextSetShouldAntialias(gc, false);
+ CGContextSetShouldAntialias(gc_, true);
+ CGContextAddArc(gc_, xt, yt, (w+h)*0.25f, 0, 2.0f*M_PI, 0);
+ (what == POLYGON ? CGContextFillPath : CGContextStrokePath)(gc_);
+ CGContextSetShouldAntialias(gc_, false);
}
#endif // FL_CFG_GFX_QUARTZ