diff options
author | Keith Packard <keithp@keithp.com> | 2015-09-01 18:50:55 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-07-18 15:25:59 -0400 |
commit | 05a793f5b3c40747d5a92a076def7f4fb673c7e7 (patch) | |
tree | 222f652ac4e1b982fd45e5f79479b1caf10526d1 /hw/xnest | |
parent | 950ffb8d6fd1480f305e38c571bda44f247f1de2 (diff) |
dix: Switch to the libXfont2 API (v2)
This new libXfont API eliminates exposing internal X server symbols to
the font library, replacing those with a struct full of the entire API
needed to use that library.
v2: Use libXfont2 instead of libXfont_2
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'hw/xnest')
-rw-r--r-- | hw/xnest/Font.c | 7 | ||||
-rw-r--r-- | hw/xnest/Init.c | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/hw/xnest/Font.c b/hw/xnest/Font.c index ffdfd2497..192b80f53 100644 --- a/hw/xnest/Font.c +++ b/hw/xnest/Font.c @@ -23,6 +23,7 @@ is" without express or implied warranty. #include "regionstr.h" #include <X11/fonts/font.h> #include <X11/fonts/fontstruct.h> +#include "dixfontstr.h" #include "scrnintstr.h" #include "Xnest.h" @@ -42,7 +43,7 @@ xnestRealizeFont(ScreenPtr pScreen, FontPtr pFont) int i; const char *name; - FontSetPrivate(pFont, xnestFontPrivateIndex, NULL); + xfont2_font_set_private(pFont, xnestFontPrivateIndex, NULL); name_atom = MakeAtom("FONT", 4, True); value_atom = 0L; @@ -65,7 +66,7 @@ xnestRealizeFont(ScreenPtr pScreen, FontPtr pFont) return False; priv = (void *) malloc(sizeof(xnestPrivFont)); - FontSetPrivate(pFont, xnestFontPrivateIndex, priv); + xfont2_font_set_private(pFont, xnestFontPrivateIndex, priv); xnestFontPriv(pFont)->font_struct = XLoadQueryFont(xnestDisplay, name); @@ -82,7 +83,7 @@ xnestUnrealizeFont(ScreenPtr pScreen, FontPtr pFont) if (xnestFontStruct(pFont)) XFreeFont(xnestDisplay, xnestFontStruct(pFont)); free(xnestFontPriv(pFont)); - FontSetPrivate(pFont, xnestFontPrivateIndex, NULL); + xfont2_font_set_private(pFont, xnestFontPrivateIndex, NULL); } return True; } diff --git a/hw/xnest/Init.c b/hw/xnest/Init.c index d9f490b85..bec2c5198 100644 --- a/hw/xnest/Init.c +++ b/hw/xnest/Init.c @@ -26,6 +26,7 @@ is" without express or implied warranty. #include "servermd.h" #include "mi.h" #include <X11/fonts/fontstruct.h> +#include "dixfontstr.h" #include "Xnest.h" @@ -72,7 +73,7 @@ InitOutput(ScreenInfo * screen_info, int argc, char *argv[]) break; } - xnestFontPrivateIndex = AllocateFontPrivateIndex(); + xnestFontPrivateIndex = xfont2_allocate_font_private_index(); if (!xnestNumScreens) xnestNumScreens = 1; |