From 0d75b19979b1ac14353765e2bb84c6a466129109 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 10 Feb 2013 15:47:53 +0000 Subject: sna: Restore glyphs with xorg-1.12 That simple and innocuous build fix for xorg-1.13 bizarrely causes missing glyphs with earlier Xorgs. Signed-off-by: Chris Wilson --- src/compat-api.h | 2 ++ src/sna/fb/fbpict.c | 5 +---- src/sna/fb/fbpict.h | 20 +++++++++++++------- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/compat-api.h b/src/compat-api.h index 2a912e5d..6d147c74 100644 --- a/src/compat-api.h +++ b/src/compat-api.h @@ -28,8 +28,10 @@ #ifndef COMPAT_API_H #define COMPAT_API_H +#include #include +#include #ifndef GLYPH_HAS_GLYPH_PICTURE_ACCESSOR #define GetGlyphPicture(g, s) GlyphPicture((g))[(s)->myNum] #define SetGlyphPicture(g, s, p) GlyphPicture((g))[(s)->myNum] = p diff --git a/src/sna/fb/fbpict.c b/src/sna/fb/fbpict.c index 27bed148..906a5f31 100644 --- a/src/sna/fb/fbpict.c +++ b/src/sna/fb/fbpict.c @@ -25,11 +25,8 @@ #include -#include -#include -#include - #include "fb.h" +#include "fbpict.h" static void SourceValidateOnePicture(PicturePtr picture) diff --git a/src/sna/fb/fbpict.h b/src/sna/fb/fbpict.h index 1ce09df2..56013853 100644 --- a/src/sna/fb/fbpict.h +++ b/src/sna/fb/fbpict.h @@ -24,17 +24,23 @@ #ifndef FBPICT_H #define FBPICT_H +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include + #include "sfb.h" extern void fbComposite(CARD8 op, - PicturePtr pSrc, - PicturePtr pMask, - PicturePtr pDst, - INT16 xSrc, - INT16 ySrc, - INT16 xMask, - INT16 yMask, INT16 xDst, INT16 yDst, CARD16 width, CARD16 height); + PicturePtr pSrc, + PicturePtr pMask, + PicturePtr pDst, + INT16 xSrc, INT16 ySrc, + INT16 xMask, INT16 yMask, + INT16 xDst, INT16 yDst, + CARD16 width, CARD16 height); extern pixman_image_t *image_from_pict(PicturePtr pict, Bool has_clip, -- cgit v1.2.3