From a0ad668fc8f8b2ec4dd82126ff7e60706abd0d0d Mon Sep 17 00:00:00 2001 From: fvogel Date: Sun, 12 Jul 2020 09:33:14 +0000 Subject: The draw-in-context functions on platforms for which TK_DRAW_IN_CONTEXT is not defined are unused. Add comments telling this and pointing to ticket [7655f65ae7]. --- generic/tkFont.c | 4 ++-- unix/tkUnixFont.c | 3 +++ unix/tkUnixRFont.c | 3 +++ win/tkWinFont.c | 5 ++++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/generic/tkFont.c b/generic/tkFont.c index ee72d83..bdaf971 100644 --- a/generic/tkFont.c +++ b/generic/tkFont.c @@ -2298,7 +2298,7 @@ Tk_DrawTextLayout( int x, int y, /* Upper-left hand corner of rectangle in * which to draw (pixels). */ int firstChar, /* The index of the first character to draw - * from the given text item. 0 specfies the + * from the given text item. 0 specifies the * beginning. */ int lastChar) /* The index just after the last character to * draw from the given text item. A number < 0 @@ -2369,7 +2369,7 @@ TkDrawAngledTextLayout( * which to draw (pixels). */ double angle, int firstChar, /* The index of the first character to draw - * from the given text item. 0 specfies the + * from the given text item. 0 specifies the * beginning. */ int lastChar) /* The index just after the last character to * draw from the given text item. A number < 0 diff --git a/unix/tkUnixFont.c b/unix/tkUnixFont.c index 0963953..d524bfd 100644 --- a/unix/tkUnixFont.c +++ b/unix/tkUnixFont.c @@ -1374,6 +1374,9 @@ Tk_DrawChars( * with access to all the characters on the line for context. On X11 this * context isn't consulted, so we just call Tk_DrawChars(). * + * Note: TK_DRAW_IN_CONTEXT being currently defined only on macOS, this + * function is unused (and possibly unfinished). See [7655f65ae7]. + * * Results: * None. * diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c index 069598f..cac6f8e 100644 --- a/unix/tkUnixRFont.c +++ b/unix/tkUnixRFont.c @@ -1309,6 +1309,9 @@ TkDrawAngledChars( * with access to all the characters on the line for context. On X11 this * context isn't consulted, so we just call Tk_DrawChars(). * + * Note: TK_DRAW_IN_CONTEXT being currently defined only on macOS, this + * function is unused (and possibly unfinished). See [7655f65ae7]. + * * Results: * None. * diff --git a/win/tkWinFont.c b/win/tkWinFont.c index 3d38ea4..7967a61 100644 --- a/win/tkWinFont.c +++ b/win/tkWinFont.c @@ -1363,7 +1363,10 @@ TkDrawAngledChars( * Draw a string of characters on the screen like Tk_DrawChars(), but * with access to all the characters on the line for context. On Windows * this context isn't consulted, so we just call Tk_DrawChars(). - * + * + * Note: TK_DRAW_IN_CONTEXT being currently defined only on macOS, this + * function is unused (and possibly unfinished). See [7655f65ae7]. +* * Results: * None. * -- cgit v0.12