summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-10 20:33:05 +0000
committerDana Jansens <danakj@orodu.net>2003-01-10 20:33:05 +0000
commit63c794a63f4ee6f661f984b9c93facf749d14fb9 (patch)
tree7b624278fec3564daf1b0a3ecacdb7055a073657
parent3dde884d380ca1103c39019049bc9864054100e9 (diff)
get the xft version from the library instead of from the headers
-rw-r--r--otk/font.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/otk/font.cc b/otk/font.cc
index ee58ed19..e794268f 100644
--- a/otk/font.cc
+++ b/otk/font.cc
@@ -51,11 +51,12 @@ BFont::BFont(int screen_num, const string &fontstring,
if (!_xft_init) {
if (!XftInit(0)) {
- printf(_("Couldn't initialize Xft version %d.%d.%d.\n\n"),
- XFT_MAJOR, XFT_MINOR, XFT_REVISION);
+ printf(_("Couldn't initialize Xft.\n\n"));
::exit(3);
}
- printf(_("Using Xft %d.%d.%d.\n"), XFT_MAJOR, XFT_MINOR, XFT_REVISION);
+ int version = XftGetVersion();
+ printf(_("Using Xft %d.%d.%d.\n"),
+ version / 10000 % 100, version / 100 % 100, version % 100);
_xft_init = true;
}