[PATCH 17/21] fb: Hide glyph implementation details

Adam Jackson ajax at redhat.com
Wed Oct 8 06:57:59 PDT 2014


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 fb/fb.h        | 10 ----------
 fb/fbglyph.c   |  4 ++--
 fb/fbpict.c    |  2 +-
 fb/fbpict.h    |  4 ----
 fb/wfbrename.h |  1 -
 5 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/fb/fb.h b/fb/fb.h
index 63130f2..7a25f7e 100644
--- a/fb/fb.h
+++ b/fb/fb.h
@@ -750,13 +750,6 @@ fbArc24(FbBits * dst,
         int dstBpp, xArc * arc, int dx, int dy, FbBits and, FbBits xor);
 
 extern _X_EXPORT void
-
-fbGlyph24(FbBits * dstLine,
-          FbStride dstStride,
-          int dstBpp, FbStip * stipple, FbBits fg, int height, int shift);
-
-extern _X_EXPORT void
-
 fbPolyline24(DrawablePtr pDrawable,
              GCPtr pGC, int mode, int npt, DDXPointPtr ptsOrig);
 
@@ -1045,9 +1038,6 @@ fbGetSpans(DrawablePtr pDrawable,
  * fbglyph.c
  */
 
-extern _X_EXPORT Bool
- fbGlyphIn(RegionPtr pRegion, int x, int y, int width, int height);
-
 extern _X_EXPORT void
 
 fbPolyGlyphBlt(DrawablePtr pDrawable,
diff --git a/fb/fbglyph.c b/fb/fbglyph.c
index 8484782..2f3bb8a 100644
--- a/fb/fbglyph.c
+++ b/fb/fbglyph.c
@@ -29,7 +29,7 @@
 #include	<X11/fonts/fontstruct.h>
 #include	"dixfontstr.h"
 
-Bool
+static Bool
 fbGlyphIn(RegionPtr pRegion, int x, int y, int width, int height)
 {
     BoxRec box;
@@ -116,7 +116,7 @@ fbGlyphIn(RegionPtr pRegion, int x, int y, int width, int height)
 #define CASE(a,b,c,d)	(a | (b << 1) | (c << 2) | (d << 3))
 #endif
 
-void
+static void
 fbGlyph24(FbBits * dstBits,
           FbStride dstStride,
           int dstBpp, FbStip * stipple, FbBits fg, int x, int height)
diff --git a/fb/fbpict.c b/fb/fbpict.c
index 8ef3277..d610e7d 100644
--- a/fb/fbpict.c
+++ b/fb/fbpict.c
@@ -82,7 +82,7 @@ fbDestroyGlyphCache(void)
     }
 }
 
-void
+static void
 fbUnrealizeGlyph(ScreenPtr pScreen,
 		 GlyphPtr pGlyph)
 {
diff --git a/fb/fbpict.h b/fb/fbpict.h
index 8b0f59f..5cb8663 100644
--- a/fb/fbpict.h
+++ b/fb/fbpict.h
@@ -72,10 +72,6 @@ fbTriangles(CARD8 op,
             INT16 xSrc, INT16 ySrc, int ntris, xTriangle * tris);
 
 extern _X_EXPORT void
-fbUnrealizeGlyph(ScreenPtr pScreen,
-		 GlyphPtr pGlyph);
-
-extern _X_EXPORT void
 fbGlyphs(CARD8 op,
 	 PicturePtr pSrc,
 	 PicturePtr pDst,
diff --git a/fb/wfbrename.h b/fb/wfbrename.h
index 91f4ae1..4595188 100644
--- a/fb/wfbrename.h
+++ b/fb/wfbrename.h
@@ -74,7 +74,6 @@
 #define fbGlyph24 wfbGlyph24
 #define fbGlyph32 wfbGlyph32
 #define fbGlyph8 wfbGlyph8
-#define fbGlyphIn wfbGlyphIn
 #define fbHasVisualTypes wfbHasVisualTypes
 #define fbImageGlyphBlt wfbImageGlyphBlt
 #define fbIn wfbIn
-- 
1.9.3



More information about the xorg-devel mailing list