[PATCH:xfs] Only call SnfSetFormat if libXfont is built with SNF support
Alan Coopersmith
alan.coopersmith at oracle.com
Fri May 16 16:20:01 PDT 2014
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
os/config.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/os/config.c b/os/config.c
index 2e5dc1c..81275ea 100644
--- a/os/config.c
+++ b/os/config.c
@@ -60,6 +60,7 @@ in this Software without prior written authorization from The Open Group.
#include "difsutils.h"
#include <X11/fonts/fontutil.h>
#include "difs.h"
+#include <X11/fonts/fontconf.h>
/* libXfont/src/bitmap/snfstr.h */
extern void SnfSetFormat(int bit, int byte, int glyph, int scan);
@@ -660,6 +661,8 @@ config_set_snf_format (
val = config_parse_int (parm, val, &ret, &scan);
if (ret == -1)
return val;
+#ifdef XFONT_SNFFORMAT
SnfSetFormat (bit, byte, glyph, scan);
+#endif
return val;
}
--
1.7.9.2
More information about the xorg-devel
mailing list