summaryrefslogtreecommitdiff
path: root/src/fl_vertex.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-03-29 10:35:00 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-03-29 10:35:00 +0000
commit941901e273319ce152523af7fa079a6f5cf89d68 (patch)
tree9d70b82fa54d81607a0022f14a0518c47805a796 /src/fl_vertex.cxx
parentb77071a3de3593ea482aa7ea0a442c7fc888a2e2 (diff)
OS X: removed all Carbon and Quickdraw references. Starting with 1.3, we only support Cocoa and Quartz.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_vertex.cxx')
-rw-r--r--src/fl_vertex.cxx24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/fl_vertex.cxx b/src/fl_vertex.cxx
index 9aafae4de..014593dab 100644
--- a/src/fl_vertex.cxx
+++ b/src/fl_vertex.cxx
@@ -207,22 +207,14 @@ void Fl_Device::end_points() {
#elif defined(WIN32)
for (int i=0; i<n; i++) SetPixel(fl_gc, p[i].x, p[i].y, fl_RGB());
#elif defined(__APPLE_QUARTZ__)
-#ifdef __APPLE_COCOA__
if (fl_quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(fl_gc, true);
-#else
- if (fl_quartz_line_width_==1.0f) CGContextSetShouldAntialias(fl_gc, false);
-#endif
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);
}
-#ifdef __APPLE_COCOA__
if (fl_quartz_line_width_ > 1.5f) CGContextSetShouldAntialias(fl_gc, false);
#else
- if (fl_quartz_line_width_==1.0f) CGContextSetShouldAntialias(fl_gc, true);
-#endif
-#else
# error unsupported platform
#endif
}
@@ -238,16 +230,12 @@ void Fl_Device::end_line() {
if (n>1) Polyline(fl_gc, p, n);
#elif defined(__APPLE_QUARTZ__)
if (n<=1) return;
-#ifdef __APPLE_COCOA__
CGContextSetShouldAntialias(fl_gc, true);
-#endif
CGContextMoveToPoint(fl_gc, p[0].x, p[0].y);
for (int i=1; i<n; i++)
CGContextAddLineToPoint(fl_gc, p[i].x, p[i].y);
CGContextStrokePath(fl_gc);
-#ifdef __APPLE_COCOA__
CGContextSetShouldAntialias(fl_gc, false);
-#endif
#else
# error unsupported platform
#endif
@@ -278,17 +266,13 @@ void Fl_Device::end_polygon() {
}
#elif defined(__APPLE_QUARTZ__)
if (n<=1) return;
-#ifdef __APPLE_COCOA__
CGContextSetShouldAntialias(fl_gc, true);
-#endif
CGContextMoveToPoint(fl_gc, p[0].x, p[0].y);
for (int i=1; i<n; i++)
CGContextAddLineToPoint(fl_gc, p[i].x, p[i].y);
CGContextClosePath(fl_gc);
CGContextFillPath(fl_gc);
-#ifdef __APPLE_COCOA__
CGContextSetShouldAntialias(fl_gc, false);
-#endif
#else
# error unsupported platform
#endif
@@ -336,17 +320,13 @@ void Fl_Device::end_complex_polygon() {
}
#elif defined(__APPLE_QUARTZ__)
if (n<=1) return;
-#ifdef __APPLE_COCOA__
CGContextSetShouldAntialias(fl_gc, true);
-#endif
CGContextMoveToPoint(fl_gc, p[0].x, p[0].y);
for (int i=1; i<n; i++)
CGContextAddLineToPoint(fl_gc, p[i].x, p[i].y);
CGContextClosePath(fl_gc);
CGContextFillPath(fl_gc);
-#ifdef __APPLE_COCOA__
CGContextSetShouldAntialias(fl_gc, false);
-#endif
#else
# error unsupported platform
#endif
@@ -378,14 +358,10 @@ void Fl_Device::circle(double x, double y,double r) {
#elif defined(__APPLE_QUARTZ__)
// Quartz warning : circle won't scale to current matrix!
//last argument must be 0 (counterclockwise) or it draws nothing under __LP64__ !!!!
-#ifdef __APPLE_COCOA__
CGContextSetShouldAntialias(fl_gc, true);
-#endif
CGContextAddArc(fl_gc, xt, yt, (w+h)*0.25f, 0, 2.0f*M_PI, 0);
(what == POLYGON ? CGContextFillPath : CGContextStrokePath)(fl_gc);
-#ifdef __APPLE_COCOA__
CGContextSetShouldAntialias(fl_gc, false);
-#endif
#else
# error unsupported platform
#endif