]> Dogcows Code - chaz/openbox/commitdiff
get the xft version from the library instead of from the headers
authorDana Jansens <danakj@orodu.net>
Fri, 10 Jan 2003 20:33:05 +0000 (20:33 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 10 Jan 2003 20:33:05 +0000 (20:33 +0000)
otk/font.cc

index ee58ed19fbc09df559289d0036561ef0d3672f67..e794268fc50a6ad2319cf4d2851f10dbe7606ea4 100644 (file)
@@ -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;
   }
 
This page took 0.023887 seconds and 4 git commands to generate.