summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2024-05-16 20:42:32 (GMT)
committerfvogel <fvogelnew1@free.fr>2024-05-16 20:42:32 (GMT)
commit9ed83f500d1ca3ece9d283b3c0eea519eb702bd4 (patch)
treebaa337557b9d40a915a990fe0cf8d6e4efbd4ed7
parent9d8fd009e8a34652cb49be13d2dc96dda78bd4d5 (diff)
downloadtk-9ed83f500d1ca3ece9d283b3c0eea519eb702bd4.zip
tk-9ed83f500d1ca3ece9d283b3c0eea519eb702bd4.tar.gz
tk-9ed83f500d1ca3ece9d283b3c0eea519eb702bd4.tar.bz2
Reduce confusion by using the adequate variable name in GetTkFontAttributes().
-rw-r--r--unix/tkUnixRFont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index f3ab5c9..1103a38 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -189,8 +189,8 @@ GetTkFontAttributes(
(void) XftPatternGetString(ftFont->pattern, XFT_FAMILY, 0, familyPtr);
if (XftPatternGetDouble(ftFont->pattern, XFT_PIXEL_SIZE, 0,
- &ptsize) == XftResultMatch) {
- size = -ptsize;
+ &pxsize) == XftResultMatch) {
+ size = -pxsize;
} else if (XftPatternGetDouble(ftFont->pattern, XFT_SIZE, 0,
&ptsize) == XftResultMatch) {
size = ptsize;