summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otk/font.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/otk/font.cc b/otk/font.cc
index 519e9386..ee9c37d7 100644
--- a/otk/font.cc
+++ b/otk/font.cc
@@ -39,10 +39,12 @@ Font::Font(int screen_num, const std::string &fontstring,
printf(_("Couldn't initialize Xft.\n\n"));
::exit(3);
}
+#ifdef DEBUG
int version = XftGetVersion();
- printf(_("Using Xft %d.%d.%d (Built against %d.%d.%d).\n"),
+ printf("Using Xft %d.%d.%d (Built against %d.%d.%d).\n",
version / 10000 % 100, version / 100 % 100, version % 100,
XFT_MAJOR, XFT_MINOR, XFT_REVISION);
+#endif
_xft_init = true;
}