diff options
author | wolfsuit <wolfsuit> | 2005-03-25 04:02:40 (GMT) |
---|---|---|
committer | wolfsuit <wolfsuit> | 2005-03-25 04:02:40 (GMT) |
commit | c35173d54850eecbcdcb6a87091d29625809f120 (patch) | |
tree | 51ec031498ed37403a17fde72321da19abbf7b35 | |
parent | a49f8eb1227abd08d2cc0d660a89ca0b106f851e (diff) | |
download | tk-c35173d54850eecbcdcb6a87091d29625809f120.zip tk-c35173d54850eecbcdcb6a87091d29625809f120.tar.gz tk-c35173d54850eecbcdcb6a87091d29625809f120.tar.bz2 |
Set the default linewidth for new gc's to 1 not 0. Some extensions seem
to rely on this.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | xlib/xgc.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2005-03-24 Jim Ingham <jingham@apple.com> + + * xlib/xgc.c (XCreateGC): Set the default linewidth to 1, not + 0. Some extensions seem to expect this. + 2005-03-15 Pat Thoyts <patthoyts@users.sourceforge.net> * unix/tcl.m4: Updated for OpenBSD and regenerated the configure @@ -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: xgc.c,v 1.6 2002/08/31 06:12:31 das Exp $ + * RCS: @(#) $Id: xgc.c,v 1.6.2.1 2005/03/25 04:02:41 wolfsuit Exp $ */ #include <tkInt.h> @@ -73,7 +73,7 @@ XCreateGC(display, d, mask, values) gp->plane_mask = (mask & GCPlaneMask) ?values->plane_mask :~0; gp->foreground = (mask & GCForeground) ?values->foreground :0; gp->background = (mask & GCBackground) ?values->background :0xffffff; - gp->line_width = (mask & GCLineWidth) ?values->line_width :0; + gp->line_width = (mask & GCLineWidth) ?values->line_width :1; gp->line_style = (mask & GCLineStyle) ?values->line_style :LineSolid; gp->cap_style = (mask & GCCapStyle) ?values->cap_style :0; gp->join_style = (mask & GCJoinStyle) ?values->join_style :0; |