summaryrefslogtreecommitdiffstats
path: root/generic/tkRectOval.c
diff options
context:
space:
mode:
authordas <das>2006-10-16 15:35:27 (GMT)
committerdas <das>2006-10-16 15:35:27 (GMT)
commitda455d8528eca0baa4cc40a62c75622ff17d4143 (patch)
tree7139775b61142135e07ba825343617a212d624ca /generic/tkRectOval.c
parentb6667df246c196b019c9a7952b0944f904ee85c5 (diff)
downloadtk-da455d8528eca0baa4cc40a62c75622ff17d4143.zip
tk-da455d8528eca0baa4cc40a62c75622ff17d4143.tar.gz
tk-da455d8528eca0baa4cc40a62c75622ff17d4143.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).
Diffstat (limited to 'generic/tkRectOval.c')
-rw-r--r--generic/tkRectOval.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/generic/tkRectOval.c b/generic/tkRectOval.c
index 07c4ced..b0fb6be 100644
--- a/generic/tkRectOval.c
+++ b/generic/tkRectOval.c
@@ -9,7 +9,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.14 2005/11/17 10:57:35 dkf Exp $
+ * RCS: @(#) $Id: tkRectOval.c,v 1.15 2006/10/16 15:35:28 das Exp $
*/
#include <stdio.h>
@@ -521,6 +521,15 @@ ConfigureRectOval(
} 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) {