summaryrefslogtreecommitdiffstats
path: root/win/tkWinDraw.c
diff options
context:
space:
mode:
authorericm <ericm>2000-10-24 23:51:32 (GMT)
committerericm <ericm>2000-10-24 23:51:32 (GMT)
commitcbe4193da475122d9dca8bfa030decadea66242c (patch)
treea1351ab32999ccdd7a0d7b478e6997177154c15f /win/tkWinDraw.c
parent4c32f8f07eaea4de5aefe53de754a3c4a7d0ae05 (diff)
downloadtk-cbe4193da475122d9dca8bfa030decadea66242c.zip
tk-cbe4193da475122d9dca8bfa030decadea66242c.tar.gz
tk-cbe4193da475122d9dca8bfa030decadea66242c.tar.bz2
* win/tkWinDraw.c (RenderObject): Applied patch from [Bug: 6368],
which corrects rendering of 1-pixel wide stippled lines on Windows. * generic/tkCanvLine.c (DisplayLine): Applied patch from [Bug: 6368], corrects bugs relating to use of active- and disabledwidth values for displaying lines (disabledwidth was never used, and activewidth/disablewidths would only possibly be used when greater than default width, rather than when simply not equal to default width).
Diffstat (limited to 'win/tkWinDraw.c')
-rw-r--r--win/tkWinDraw.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c
index 55c4e59..5b09693 100644
--- a/win/tkWinDraw.c
+++ b/win/tkWinDraw.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: tkWinDraw.c,v 1.8 2000/03/31 09:24:26 hobbs Exp $
+ * RCS: @(#) $Id: tkWinDraw.c,v 1.9 2000/10/24 23:51:33 ericm Exp $
*/
#include "tkWinInt.h"
@@ -745,15 +745,13 @@ RenderObject(dc, gc, points, npoints, mode, pen, func)
}
/*
- * Grow the bounding box enough to account for wide lines.
+ * Grow the bounding box enough to account for line width.
*/
- if (gc->line_width > 1) {
- rect.left -= gc->line_width;
- rect.top -= gc->line_width;
- rect.right += gc->line_width;
- rect.bottom += gc->line_width;
- }
+ rect.left -= gc->line_width;
+ rect.top -= gc->line_width;
+ rect.right += gc->line_width;
+ rect.bottom += gc->line_width;
width = rect.right - rect.left;
height = rect.bottom - rect.top;