summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvLine.c
diff options
context:
space:
mode:
authordas <das@noemail.net>2006-10-16 15:35:27 (GMT)
committerdas <das@noemail.net>2006-10-16 15:35:27 (GMT)
commited3f2c5c3c03c3cfc0b591885dbd95adf745bbfb (patch)
tree7139775b61142135e07ba825343617a212d624ca /generic/tkCanvLine.c
parent3d9c41561a5a711c50e7d7def2ec924659511334 (diff)
downloadtk-ed3f2c5c3c03c3cfc0b591885dbd95adf745bbfb.zip
tk-ed3f2c5c3c03c3cfc0b591885dbd95adf745bbfb.tar.gz
tk-ed3f2c5c3c03c3cfc0b591885dbd95adf745bbfb.tar.bz2
* changes: updates for 8.5a5 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). FossilOrigin-Name: 7b1e53886b88dff3ecd90a0b5a1a620b7f7a60cf
Diffstat (limited to 'generic/tkCanvLine.c')
-rw-r--r--generic/tkCanvLine.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c
index f645243..f74bc5a 100644
--- a/generic/tkCanvLine.c
+++ b/generic/tkCanvLine.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: tkCanvLine.c,v 1.18 2005/11/17 10:57:35 dkf Exp $
+ * RCS: @(#) $Id: tkCanvLine.c,v 1.19 2006/10/16 15:35:27 das Exp $
*/
#include <stdio.h>
@@ -523,7 +523,15 @@ ConfigureLine(
gcValues.join_style = linePtr->joinStyle;
mask |= GCJoinStyle;
newGC = Tk_GetGC(tkwin, mask, &gcValues);
+#ifdef MAC_OSX_TK
+ /*
+ * Mac OS X CG drawing needs access to linewidth even for
+ * arrow fills (as linewidth controls antialiasing).
+ */
+ mask |= GCLineWidth;
+#else
gcValues.line_width = 0;
+#endif
arrowGC = Tk_GetGC(tkwin, mask, &gcValues);
} else {
newGC = arrowGC = None;