summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixMenu.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-01 16:05:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-01 16:05:17 (GMT)
commit2156b8f27a1daba1ff6be50810e837283b9ec589 (patch)
treeac6c93ac33c779c84f5ea9fab7278394fdabb0e0 /unix/tkUnixMenu.c
parent20c0cdf51c6a9cb24182ba805ea2f0f1e87e0a24 (diff)
downloadtk-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.c2
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,