diff options
| author | Manolo Gouy <Manolo> | 2016-02-19 12:40:24 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-02-19 12:40:24 +0000 |
| commit | 1b5e231c902ab198c577989db44946797ebd4893 (patch) | |
| tree | 211751e0eceda308df4e51d94511362f5e0b55f6 /src/drivers/Quartz/Fl_Quartz_Graphics_Driver_arci.cxx | |
| parent | 6d766cc6814a9e7a04c0b147c7a3cbdc0817dfd4 (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_arci.cxx')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver_arci.cxx | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_arci.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_arci.cxx index 4b1a164df..d0f63fcee 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_arci.cxx +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_arci.cxx @@ -30,42 +30,42 @@ void Fl_Quartz_Graphics_Driver::arc(int x,int y,int w,int h,double a1,double a2) if (w <= 0 || h <= 0) return; a1 = (-a1)/180.0f*M_PI; a2 = (-a2)/180.0f*M_PI; float cx = x + 0.5f*w - 0.5f, cy = y + 0.5f*h - 0.5f; - CGContextSetShouldAntialias(gc, true); + CGContextSetShouldAntialias(gc_, true); if (w!=h) { - CGContextSaveGState(gc); - CGContextTranslateCTM(gc, cx, cy); - CGContextScaleCTM(gc, w-1.0f, h-1.0f); - CGContextAddArc(gc, 0, 0, 0.5, a1, a2, 1); - CGContextRestoreGState(gc); + CGContextSaveGState(gc_); + CGContextTranslateCTM(gc_, cx, cy); + CGContextScaleCTM(gc_, w-1.0f, h-1.0f); + CGContextAddArc(gc_, 0, 0, 0.5, a1, a2, 1); + CGContextRestoreGState(gc_); } else { float r = (w+h)*0.25f-0.5f; - CGContextAddArc(gc, cx, cy, r, a1, a2, 1); + CGContextAddArc(gc_, cx, cy, r, a1, a2, 1); } - CGContextStrokePath(gc); - CGContextSetShouldAntialias(gc, false); + CGContextStrokePath(gc_); + CGContextSetShouldAntialias(gc_, false); } void Fl_Quartz_Graphics_Driver::pie(int x,int y,int w,int h,double a1,double a2) { if (w <= 0 || h <= 0) return; a1 = (-a1)/180.0f*M_PI; a2 = (-a2)/180.0f*M_PI; float cx = x + 0.5f*w - 0.5f, cy = y + 0.5f*h - 0.5f; - CGContextSetShouldAntialias(gc, true); + CGContextSetShouldAntialias(gc_, true); if (w!=h) { - CGContextSaveGState(gc); - CGContextTranslateCTM(gc, cx, cy); - CGContextScaleCTM(gc, w, h); - CGContextAddArc(gc, 0, 0, 0.5, a1, a2, 1); - CGContextAddLineToPoint(gc, 0, 0); - CGContextClosePath(gc); - CGContextRestoreGState(gc); + CGContextSaveGState(gc_); + CGContextTranslateCTM(gc_, cx, cy); + CGContextScaleCTM(gc_, w, h); + CGContextAddArc(gc_, 0, 0, 0.5, a1, a2, 1); + CGContextAddLineToPoint(gc_, 0, 0); + CGContextClosePath(gc_); + CGContextRestoreGState(gc_); } else { float r = (w+h)*0.25f; - CGContextAddArc(gc, cx, cy, r, a1, a2, 1); - CGContextAddLineToPoint(gc, cx, cy); - CGContextClosePath(gc); + CGContextAddArc(gc_, cx, cy, r, a1, a2, 1); + CGContextAddLineToPoint(gc_, cx, cy); + CGContextClosePath(gc_); } - CGContextFillPath(gc); - CGContextSetShouldAntialias(gc, false); + CGContextFillPath(gc_); + CGContextSetShouldAntialias(gc_, false); } #endif // FL_CFG_GFX_QUARTZ |
