summaryrefslogtreecommitdiffstats
path: root/generic/tkRectOval.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-01-12 11:45:02 (GMT)
committerhobbs <hobbs>2000-01-12 11:45:02 (GMT)
commit417d8566462493d0782bf312cdbbd4e301e30546 (patch)
tree5d3d64633cf82653fb8cf69a698e374ca1bf6146 /generic/tkRectOval.c
parent32fad90058330cb7c74edd226bc96a8e95fe73be (diff)
downloadtk-417d8566462493d0782bf312cdbbd4e301e30546.zip
tk-417d8566462493d0782bf312cdbbd4e301e30546.tar.gz
tk-417d8566462493d0782bf312cdbbd4e301e30546.tar.bz2
* generic/tkCanvas.c: fixed mem leak with TagSearchExprInit
[Bug: 3977] * generic/tkStubInit.c: * generic/tkDecls.h: remove non-existent Tk_(Get|Create)CanvasVisitor prototypes * generic/tkText.c: * generic/tkEntry.c: fixed cursor to not blink when widget was disabled [Bug: 1807] * generic/tkRectOval.c: added note about change to bloat for RectOval bounds calculation for WIN32 only
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 b509c04..f5900c5 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.4 1999/12/14 06:52:30 hobbs Exp $
+ * RCS: @(#) $Id: tkRectOval.c,v 1.5 2000/01/12 11:45:03 hobbs Exp $
*/
#include <stdio.h>
@@ -664,7 +664,16 @@ ComputeRectOvalBbox(canvas, rectOvalPtr)
}
if (rectOvalPtr->outline.gc == None) {
+ /*
+ * The Win32 switch was added for 8.3 to solve a problem
+ * with ovals leaving traces on bottom and right of 1 pixel.
+ * This may not be the correct place to solve it, but it works.
+ */
+#ifdef __WIN32__
bloat = 1;
+#else
+ bloat = 0;
+#endif
} else {
bloat = (int) (width+1)/2;
}