summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvArc.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-13 14:51:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-13 14:51:58 (GMT)
commit40b76dbd4f4479294a9cd461da0400e31734ac2b (patch)
tree0b9c811cef1183d76e05a6ac238b5652de5bb12d /generic/tkCanvArc.c
parentad423a347178d6279b112f7031e683c7e15d798a (diff)
parent75aab96f3ddb340be5aecbb880f1af2a07d9ec25 (diff)
downloadtk-40b76dbd4f4479294a9cd461da0400e31734ac2b.zip
tk-40b76dbd4f4479294a9cd461da0400e31734ac2b.tar.gz
tk-40b76dbd4f4479294a9cd461da0400e31734ac2b.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tkCanvArc.c')
-rw-r--r--generic/tkCanvArc.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/generic/tkCanvArc.c b/generic/tkCanvArc.c
index 880d313..d9c2eca 100644
--- a/generic/tkCanvArc.c
+++ b/generic/tkCanvArc.c
@@ -299,7 +299,7 @@ CreateArc(
arcPtr->activeFillStipple = None;
arcPtr->disabledFillStipple = None;
arcPtr->style = PIESLICE_STYLE;
- arcPtr->fillGC = None;
+ arcPtr->fillGC = NULL;
arcPtr->height = 0;
/*
@@ -508,9 +508,9 @@ ConfigureArc(
mask |= GCCapStyle;
newGC = Tk_GetGC(tkwin, mask, &gcValues);
} else {
- newGC = None;
+ newGC = NULL;
}
- if (arcPtr->outline.gc != None) {
+ if (arcPtr->outline.gc != NULL) {
Tk_FreeGC(Tk_Display(tkwin), arcPtr->outline.gc);
}
arcPtr->outline.gc = newGC;
@@ -542,9 +542,9 @@ ConfigureArc(
}
if (arcPtr->style == ARC_STYLE) {
- newGC = None;
+ newGC = NULL;
} else if (color == NULL) {
- newGC = None;
+ newGC = NULL;
} else {
gcValues.foreground = color->pixel;
if (arcPtr->style == CHORD_STYLE) {
@@ -560,7 +560,7 @@ ConfigureArc(
}
newGC = Tk_GetGC(tkwin, mask, &gcValues);
}
- if (arcPtr->fillGC != None) {
+ if (arcPtr->fillGC != NULL) {
Tk_FreeGC(Tk_Display(tkwin), arcPtr->fillGC);
}
arcPtr->fillGC = newGC;
@@ -717,7 +717,7 @@ DeleteArc(
if (arcPtr->disabledFillStipple != None) {
Tk_FreeBitmap(display, arcPtr->disabledFillStipple);
}
- if (arcPtr->fillGC != None) {
+ if (arcPtr->fillGC != NULL) {
Tk_FreeGC(display, arcPtr->fillGC);
}
}
@@ -848,7 +848,7 @@ ComputeArcBbox(
* drawn) and add one extra pixel just for safety.
*/
- if (arcPtr->outline.gc == None) {
+ if (arcPtr->outline.gc == NULL) {
tmp = 1;
} else {
tmp = (int) ((width + 1.0)/2.0 + 1);
@@ -947,7 +947,7 @@ DisplayArc(
* window servers to crash and should be a no-op anyway.
*/
- if ((arcPtr->fillGC != None) && (extent != 0)) {
+ if ((arcPtr->fillGC != NULL) && (extent != 0)) {
if (stipple != None) {
int w = 0;
int h = 0;
@@ -981,7 +981,7 @@ DisplayArc(
XSetTSOrigin(display, arcPtr->fillGC, 0, 0);
}
}
- if (arcPtr->outline.gc != None) {
+ if (arcPtr->outline.gc != NULL) {
Tk_ChangeOutlineGC(canvas, itemPtr, &(arcPtr->outline));
if (extent != 0) {
@@ -1019,13 +1019,13 @@ DisplayArc(
} else {
if (arcPtr->style == CHORD_STYLE) {
TkFillPolygon(canvas, arcPtr->outlinePtr, CHORD_OUTLINE_PTS,
- display, drawable, arcPtr->outline.gc, None);
+ display, drawable, arcPtr->outline.gc, NULL);
} else if (arcPtr->style == PIESLICE_STYLE) {
TkFillPolygon(canvas, arcPtr->outlinePtr, PIE_OUTLINE1_PTS,
- display, drawable, arcPtr->outline.gc, None);
+ display, drawable, arcPtr->outline.gc, NULL);
TkFillPolygon(canvas, arcPtr->outlinePtr + 2*PIE_OUTLINE1_PTS,
PIE_OUTLINE2_PTS, display, drawable,
- arcPtr->outline.gc, None);
+ arcPtr->outline.gc, NULL);
}
}
@@ -1131,12 +1131,12 @@ ArcToPoint(
return dist;
}
- if ((arcPtr->fillGC != None) || (arcPtr->outline.gc == None)) {
+ if ((arcPtr->fillGC != NULL) || (arcPtr->outline.gc == NULL)) {
filled = 1;
} else {
filled = 0;
}
- if (arcPtr->outline.gc == None) {
+ if (arcPtr->outline.gc == NULL) {
width = 0.0;
}
@@ -1258,12 +1258,12 @@ ArcToArea(
}
}
- if ((arcPtr->fillGC != None) || (arcPtr->outline.gc == None)) {
+ if ((arcPtr->fillGC != NULL) || (arcPtr->outline.gc == NULL)) {
filled = 1;
} else {
filled = 0;
}
- if (arcPtr->outline.gc == None) {
+ if (arcPtr->outline.gc == NULL) {
width = 0.0;
}
@@ -1997,7 +1997,7 @@ ArcToPostscript(
* arc.
*/
- if (arcPtr->fillGC != None) {
+ if (arcPtr->fillGC != NULL) {
Tcl_AppendPrintfToObj(psObj,
"matrix currentmatrix\n"
"%.15g %.15g translate %.15g %.15g scale\n",
@@ -2026,7 +2026,7 @@ ArcToPostscript(
}
Tcl_AppendObjToObj(psObj, Tcl_GetObjResult(interp));
- if (arcPtr->outline.gc != None) {
+ if (arcPtr->outline.gc != NULL) {
Tcl_AppendToObj(psObj, "grestore gsave\n", -1);
}
} else {
@@ -2038,7 +2038,7 @@ ArcToPostscript(
* If there's an outline for the arc, draw it.
*/
- if (arcPtr->outline.gc != None) {
+ if (arcPtr->outline.gc != NULL) {
Tcl_AppendPrintfToObj(psObj,
"matrix currentmatrix\n"
"%.15g %.15g translate %.15g %.15g scale\n",