get the xft version from the library instead of from the headers
This commit is contained in:
parent
3dde884d38
commit
63c794a63f
1 changed files with 4 additions and 3 deletions
|
@ -51,11 +51,12 @@ BFont::BFont(int screen_num, const string &fontstring,
|
||||||
|
|
||||||
if (!_xft_init) {
|
if (!_xft_init) {
|
||||||
if (!XftInit(0)) {
|
if (!XftInit(0)) {
|
||||||
printf(_("Couldn't initialize Xft version %d.%d.%d.\n\n"),
|
printf(_("Couldn't initialize Xft.\n\n"));
|
||||||
XFT_MAJOR, XFT_MINOR, XFT_REVISION);
|
|
||||||
::exit(3);
|
::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;
|
_xft_init = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue