summaryrefslogtreecommitdiff
path: root/src/fl_rect.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-12-14 13:51:51 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-12-14 13:51:51 +0000
commite3883f0384c183836d42bcfd81d9a92bb1333b2d (patch)
tree45c203fe5742ccb92ca9438ddf961aba24aabd6a /src/fl_rect.cxx
parent31d3e28bbabd47bd7312d0b1895312d42bed9c33 (diff)
STR $1099: The Quartz version of FLTK now draws a very nice resize
control in the lower right corner of top-level windows if that window is resizable. The color of the control adapts to the background color of the window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4711 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_rect.cxx')
-rw-r--r--src/fl_rect.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fl_rect.cxx b/src/fl_rect.cxx
index bf951c736..f19f7067b 100644
--- a/src/fl_rect.cxx
+++ b/src/fl_rect.cxx
@@ -240,8 +240,7 @@ void fl_line(int x, int y, int x1, int y1) {
MoveTo(x, y);
LineTo(x1, y1);
#elif defined(__APPLE_QUARTZ__)
- if (( x==x1 || y==y1 ) && fl_quartz_line_width_!=1.0f )
- CGContextSetShouldAntialias(fl_gc, false);
+ if (fl_quartz_line_width_==1.0f ) CGContextSetShouldAntialias(fl_gc, false);
CGContextMoveToPoint(fl_gc, x, y);
CGContextAddLineToPoint(fl_gc, x1, y1);
CGContextStrokePath(fl_gc);
@@ -264,10 +263,12 @@ void fl_line(int x, int y, int x1, int y1, int x2, int y2) {
LineTo(x1, y1);
LineTo(x2, y2);
#elif defined(__APPLE_QUARTZ__)
+ if (fl_quartz_line_width_==1.0f ) CGContextSetShouldAntialias(fl_gc, false);
CGContextMoveToPoint(fl_gc, x, y);
CGContextAddLineToPoint(fl_gc, x1, y1);
CGContextAddLineToPoint(fl_gc, x2, y2);
CGContextStrokePath(fl_gc);
+ if (fl_quartz_line_width_==1.0f ) CGContextSetShouldAntialias(fl_gc, true);
#else
XPoint p[3];
p[0].x = x; p[0].y = y;