summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2024-05-20 14:58:43 (GMT)
committerfvogel <fvogelnew1@free.fr>2024-05-20 14:58:43 (GMT)
commitce76659f66dcebb3e39805af376baddcc6dbe776 (patch)
tree3f4a59d59643c28a431feee5e8c58f69c9b53ba4 /unix
parenteae51cd0e96ff84facbf0514040416714ba2292e (diff)
downloadtk-ce76659f66dcebb3e39805af376baddcc6dbe776.zip
tk-ce76659f66dcebb3e39805af376baddcc6dbe776.tar.gz
tk-ce76659f66dcebb3e39805af376baddcc6dbe776.tar.bz2
Revert 3rd change from [84cd707d] following Csaba's request.
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixRFont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index 2ca73e4..faca247 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -507,7 +507,7 @@ TkpGetFontFromAttributes(
if (faPtr->size > 0.0) {
XftPatternAddDouble(pattern, XFT_SIZE, faPtr->size);
} else if (faPtr->size < 0.0) {
- XftPatternAddDouble(pattern, XFT_PIXEL_SIZE, -faPtr->size);
+ XftPatternAddDouble(pattern, XFT_SIZE, TkFontGetPoints(tkwin, faPtr->size));
} else {
XftPatternAddDouble(pattern, XFT_SIZE, 12.0);
}