diff options
author | fvogel <fvogelnew1@free.fr> | 2020-07-12 09:33:14 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-07-12 09:33:14 (GMT) |
commit | a0ad668fc8f8b2ec4dd82126ff7e60706abd0d0d (patch) | |
tree | 00e072143ac309eb1295a74ebdc1349d7842bf99 | |
parent | 55208e8f833e1be79f085fa7cd1519b97fa9cb23 (diff) | |
download | tk-a0ad668fc8f8b2ec4dd82126ff7e60706abd0d0d.zip tk-a0ad668fc8f8b2ec4dd82126ff7e60706abd0d0d.tar.gz tk-a0ad668fc8f8b2ec4dd82126ff7e60706abd0d0d.tar.bz2 |
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].
-rw-r--r-- | generic/tkFont.c | 4 | ||||
-rw-r--r-- | unix/tkUnixFont.c | 3 | ||||
-rw-r--r-- | unix/tkUnixRFont.c | 3 | ||||
-rw-r--r-- | 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. * |