summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixRFont.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/tkUnixRFont.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/tkUnixRFont.c')
-rw-r--r--unix/tkUnixRFont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index 31b28c5..f2bef2b 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -832,7 +832,7 @@ LookUpColor(Display *display, /* Display to lookup colors on */
fontPtr->colors[last].color.color.red = xcolor.red;
fontPtr->colors[last].color.color.green = xcolor.green;
fontPtr->colors[last].color.color.blue = xcolor.blue;
- fontPtr->colors[last].color.color.alpha = 0xffff;
+ fontPtr->colors[last].color.color.alpha = 0xFFFF;
fontPtr->colors[last].color.pixel = pixel;
/*