summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2024-05-28 19:30:06 (GMT)
committerfvogel <fvogelnew1@free.fr>2024-05-28 19:30:06 (GMT)
commit01d6c531757925d6ce44532bc029d9e84f022c0d (patch)
treef0189ba390ec81daa4cab9c08757b59f001ad9f1 /unix
parent2ef75878f15c08a4bbcf76495a1a15e9997ceb9f (diff)
downloadtk-01d6c531757925d6ce44532bc029d9e84f022c0d.zip
tk-01d6c531757925d6ce44532bc029d9e84f022c0d.tar.gz
tk-01d6c531757925d6ce44532bc029d9e84f022c0d.tar.bz2
#ifdef DEBUG_FONTSEL --> #if DEBUG_FONTSEL in tkUnixRFont.c
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixRFont.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index 55d0eb8..2a3ecef 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -733,7 +733,7 @@ Tk_MeasureChars(
int clen, curX, newX, curByte, newByte, sawNonSpace;
int termByte = 0, termX = 0, errorFlag = 0;
Tk_ErrorHandler handler;
-#ifdef DEBUG_FONTSEL
+#if DEBUG_FONTSEL
char string[256];
int len = 0;
#endif /* DEBUG_FONTSEL */
@@ -769,7 +769,7 @@ Tk_MeasureChars(
sawNonSpace = 1;
}
-#ifdef DEBUG_FONTSEL
+#if DEBUG_FONTSEL
string[len++] = (char) c;
#endif /* DEBUG_FONTSEL */
ftFont = GetFont(fontPtr, c, 0.0);
@@ -812,7 +812,7 @@ Tk_MeasureChars(
}
measureCharsEnd:
Tk_DeleteErrorHandler(handler);
-#ifdef DEBUG_FONTSEL
+#if DEBUG_FONTSEL
string[len] = '\0';
DEBUG(("MeasureChars: %s length %d bytes %d\n", string, curX, curByte));
#endif /* DEBUG_FONTSEL */