From 4eaab17aec8ea66428087065901324f56df9020e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 20 Jul 2016 11:26:05 +0100 Subject: Adapt to libXfont2 ABI changes Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index e06cd245..c5c4b6a4 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -117,6 +117,11 @@ #define RECTILINEAR 0x4 #define OVERWRITES 0x8 +#if XFONT2_CLIENT_FUNCS_VERSION >= 1 +#define AllocateFontPrivateIndex() xfont2_allocate_font_private_index() +#define FontSetPrivate(font, idx, data) xfont2_font_set_private(font, idx, data) +#endif + #if 0 static void __sna_fallback_flush(DrawablePtr d) { -- cgit v1.2.3