summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-06-21 20:29:05 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-06-24 04:10:11 -0400
commit42c6616499e6ca193a0b764576a6ed8650dd3d7b (patch)
treee57f9bb68734e66e07a93504dcb3a73318f74e32
parent908a5e43bc37ea3b80985683369a27b4e607aecf (diff)
downloadxorg-lib-libXft-42c6616499e6ca193a0b764576a6ed8650dd3d7b.tar.gz
add debugging trace for XftDefaultSet()
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r--src/xftdpy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xftdpy.c b/src/xftdpy.c
index a3ee607..1d9a129 100644
--- a/src/xftdpy.c
+++ b/src/xftdpy.c
@@ -277,11 +277,15 @@ XftDefaultSet (Display *dpy, FcPattern *defaults)
info->max_glyph_memory = (unsigned long)XftDefaultGetInteger (dpy,
XFT_MAX_GLYPH_MEMORY, 0,
(int)info->max_glyph_memory);
+ if (XftDebug () & XFT_DBG_CACHE)
+ printf ("update max cache memory %ld\n", info->max_glyph_memory);
if (!info->max_unref_fonts)
info->max_unref_fonts = XFT_DPY_MAX_UNREF_FONTS;
info->max_unref_fonts = XftDefaultGetInteger (dpy,
XFT_MAX_UNREF_FONTS, 0,
info->max_unref_fonts);
+ if (XftDebug() & XFT_DBG_CACHE)
+ printf ("update max unref fonts %d\n", info->max_unref_fonts);
return True;
}