]> Dogcows Code - chaz/openbox/blobdiff - otk/font.cc
fix \'s
[chaz/openbox] / 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.020386 seconds and 4 git commands to generate.