summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordas <das>2004-07-27 18:58:32 (GMT)
committerdas <das>2004-07-27 18:58:32 (GMT)
commit42ad4e15c28ba0952715b1cb1d341f58f150618a (patch)
tree7ca0bab4f2646bbfe82c4068bea1c42a4b42f78f /generic
parentd25e7b3502c8915f84e50870a9153665601f5de7 (diff)
downloadtk-42ad4e15c28ba0952715b1cb1d341f58f150618a.zip
tk-42ad4e15c28ba0952715b1cb1d341f58f150618a.tar.gz
tk-42ad4e15c28ba0952715b1cb1d341f58f150618a.tar.bz2
* generic/tkRectOval.c (ComputeRectOvalBbox): Mac OS X specific
fix to rounding in bounding box 'bloat' calculation to avoid drawing outside of bounding box when CG drawing enabled. Fix probably correct on other platforms as well? * macosx/tkMacOSXDraw.c (TkMacOSXInitCGDrawing): fixed LinkVar type for tkMacOSXCGAntiAliasLimit.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkRectOval.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/tkRectOval.c b/generic/tkRectOval.c
index 59d233f..636b4ba 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 2003/02/09 07:48:22 hobbs Exp $
+ * RCS: @(#) $Id: tkRectOval.c,v 1.10.2.1 2004/07/27 18:58:33 das Exp $
*/
#include <stdio.h>
@@ -672,7 +672,14 @@ ComputeRectOvalBbox(canvas, rectOvalPtr)
bloat = 0;
#endif
} else {
+#ifdef MAC_OSX_TK
+ /* Mac OS X CoreGraphics needs correct rounding here
+ * otherwise it will draw outside the bounding box.
+ * Probably correct on other platforms as well? */
+ bloat = (int) (width+1.5)/2;
+#else
bloat = (int) (width+1)/2;
+#endif
}
/*