summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvText.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/tkCanvText.c
parentad423a347178d6279b112f7031e683c7e15d798a (diff)
parent75aab96f3ddb340be5aecbb880f1af2a07d9ec25 (diff)
downloadtk-40b76dbd4f4479294a9cd461da0400e31734ac2b.zip
tk-40b76dbd4f4479294a9cd461da0400e31734ac2b.tar.gz
tk-40b76dbd4f4479294a9cd461da0400e31734ac2b.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tkCanvText.c')
-rw-r--r--generic/tkCanvText.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/generic/tkCanvText.c b/generic/tkCanvText.c
index b4fa656..cfffc62 100644
--- a/generic/tkCanvText.c
+++ b/generic/tkCanvText.c
@@ -269,9 +269,9 @@ CreateText(
textPtr->textLayout = NULL;
textPtr->actualWidth = 0;
textPtr->drawOrigin[0] = textPtr->drawOrigin[1] = 0.0;
- textPtr->gc = None;
- textPtr->selTextGC = None;
- textPtr->cursorOffGC = None;
+ textPtr->gc = NULL;
+ textPtr->selTextGC = NULL;
+ textPtr->cursorOffGC = NULL;
textPtr->sine = 0.0;
textPtr->cosine = 1.0;
@@ -447,7 +447,7 @@ ConfigureText(
}
}
- newGC = newSelGC = None;
+ newGC = newSelGC = NULL;
if (textPtr->tkfont != NULL) {
gcValues.font = Tk_FontId(textPtr->tkfont);
mask = GCFont;
@@ -472,11 +472,11 @@ ConfigureText(
}
newSelGC = Tk_GetGC(tkwin, mask|GCForeground, &gcValues);
}
- if (textPtr->gc != None) {
+ if (textPtr->gc != NULL) {
Tk_FreeGC(Tk_Display(tkwin), textPtr->gc);
}
textPtr->gc = newGC;
- if (textPtr->selTextGC != None) {
+ if (textPtr->selTextGC != NULL) {
Tk_FreeGC(Tk_Display(tkwin), textPtr->selTextGC);
}
textPtr->selTextGC = newSelGC;
@@ -491,9 +491,9 @@ ConfigureText(
}
newGC = Tk_GetGC(tkwin, GCForeground, &gcValues);
} else {
- newGC = None;
+ newGC = NULL;
}
- if (textPtr->cursorOffGC != None) {
+ if (textPtr->cursorOffGC != NULL) {
Tk_FreeGC(Tk_Display(tkwin), textPtr->cursorOffGC);
}
textPtr->cursorOffGC = newGC;
@@ -592,13 +592,13 @@ DeleteText(
}
Tk_FreeTextLayout(textPtr->textLayout);
- if (textPtr->gc != None) {
+ if (textPtr->gc != NULL) {
Tk_FreeGC(display, textPtr->gc);
}
- if (textPtr->selTextGC != None) {
+ if (textPtr->selTextGC != NULL) {
Tk_FreeGC(display, textPtr->selTextGC);
}
- if (textPtr->cursorOffGC != None) {
+ if (textPtr->cursorOffGC != NULL) {
Tk_FreeGC(display, textPtr->cursorOffGC);
}
}
@@ -820,7 +820,7 @@ DisplayCanvText(
}
}
- if (textPtr->gc == None) {
+ if (textPtr->gc == NULL) {
return;
}
@@ -932,7 +932,7 @@ DisplayCanvText(
Tk_Fill3DPolygon(Tk_CanvasTkwin(canvas), drawable,
textInfoPtr->insertBorder, points, 4,
textInfoPtr->insertBorderWidth, TK_RELIEF_RAISED);
- } else if (textPtr->cursorOffGC != None) {
+ } else if (textPtr->cursorOffGC != NULL) {
/*
* Redraw the background over the area of the cursor, even
* though the cursor is turned off. This guarantees that the