X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ffont.cc;h=e794268fc50a6ad2319cf4d2851f10dbe7606ea4;hb=bc88d310fea71823fb2c61d071ff499579bffaba;hp=ee58ed19fbc09df559289d0036561ef0d3672f67;hpb=867d3d9a94b059a0bd7574f13e1c0c669abaf8a3;p=chaz%2Fopenbox 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; }