diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-12-01 16:05:17 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-12-01 16:05:17 (GMT) |
commit | 2156b8f27a1daba1ff6be50810e837283b9ec589 (patch) | |
tree | ac6c93ac33c779c84f5ea9fab7278394fdabb0e0 /unix/tkUnixMenu.c | |
parent | 20c0cdf51c6a9cb24182ba805ea2f0f1e87e0a24 (diff) | |
download | tk-2156b8f27a1daba1ff6be50810e837283b9ec589.zip tk-2156b8f27a1daba1ff6be50810e837283b9ec589.tar.gz tk-2156b8f27a1daba1ff6be50810e837283b9ec589.tar.bz2 |
In tkUnixFont, make sure that the utf-to-ucs2 encoder clamps at 0xFFFF. Use more uppercase hex-values where appropriate.
Diffstat (limited to 'unix/tkUnixMenu.c')
-rw-r--r-- | unix/tkUnixMenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnixMenu.c b/unix/tkUnixMenu.c index 909276a..f7e1860 100644 --- a/unix/tkUnixMenu.c +++ b/unix/tkUnixMenu.c @@ -1111,7 +1111,7 @@ TkpComputeMenubarGeometry( maxWindowWidth = Tk_Width(menuPtr->tkwin); if (maxWindowWidth == 1) { - maxWindowWidth = 0x7ffffff; + maxWindowWidth = 0x7FFFFFF; } currentRowHeight = 0; Tk_GetPixelsFromObj(NULL, menuPtr->tkwin, menuPtr->borderWidthPtr, |