diff options
author | das <das> | 2006-10-16 15:35:50 (GMT) |
---|---|---|
committer | das <das> | 2006-10-16 15:35:50 (GMT) |
commit | b71993589cdd8bfdbfec240b98d7537d4d9d5f59 (patch) | |
tree | ec30fa3d227bed8ea0080cf22c2d28d3b8fceace /generic/tkRectOval.c | |
parent | 1a67b85428b8e2a3b1b848b950b00bb68a570898 (diff) | |
download | tk-b71993589cdd8bfdbfec240b98d7537d4d9d5f59.zip tk-b71993589cdd8bfdbfec240b98d7537d4d9d5f59.tar.gz tk-b71993589cdd8bfdbfec240b98d7537d4d9d5f59.tar.bz2 |
* changes: updates for 8.4.14 release.
* macosx/tkMacOSXDraw.c: fix numerous issues in CG and QD drawing procs
so that they now match X11 drawing much more closely [Bug 1558051];
use Tiger ellipse drawing API when available; fix comments & whitespace.
* macosx/tkMacOSXInit.c: set default linewidth limit for CG
antialiasing to 0 as thin horizontal/vertical lines look good now.
* generic/tkCanvLine.c (ConfigureLine): on TkAqua, pass outline
* generic/tkCanvPoly.c (ConfigurePolygon): linewidth in gc even for
* generic/tkRectOval.c (ConfigureRectOval): fills (as it controls AA).
Diffstat (limited to 'generic/tkRectOval.c')
-rw-r--r-- | generic/tkRectOval.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/generic/tkRectOval.c b/generic/tkRectOval.c index 636b4ba..3a173a9 100644 --- a/generic/tkRectOval.c +++ b/generic/tkRectOval.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkRectOval.c,v 1.10.2.1 2004/07/27 18:58:33 das Exp $ + * RCS: @(#) $Id: tkRectOval.c,v 1.10.2.2 2006/10/16 15:35:50 das Exp $ */ #include <stdio.h> @@ -514,6 +514,15 @@ ConfigureRectOval(interp, canvas, itemPtr, objc, objv, flags) } else { mask = GCForeground; } +#ifdef MAC_OSX_TK + /* + * Mac OS X CG drawing needs access to the outline linewidth + * even for fills (as linewidth controls antialiasing). + */ + gcValues.line_width = rectOvalPtr->outline.gc != None ? + rectOvalPtr->outline.gc->line_width : 0; + mask |= GCLineWidth; +#endif newGC = Tk_GetGC(tkwin, mask, &gcValues); } if (rectOvalPtr->fillGC != None) { |