From 2fb179f86b0f9ecb7876759b87f9c64634a3f114 Mon Sep 17 00:00:00 2001 From: marha Date: Sat, 25 Jul 2009 13:45:56 +0000 Subject: Added libXfont-1.4.0.tar.gz. --- libXfont/src/bitmap/bitmapfunc.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'libXfont/src/bitmap/bitmapfunc.c') diff --git a/libXfont/src/bitmap/bitmapfunc.c b/libXfont/src/bitmap/bitmapfunc.c index e980dfbcc..80d7da19d 100644 --- a/libXfont/src/bitmap/bitmapfunc.c +++ b/libXfont/src/bitmap/bitmapfunc.c @@ -67,6 +67,7 @@ typedef struct _BitmapFileFunctions { FontFilePtr /* file */ ); } BitmapFileFunctionsRec, *BitmapFileFunctionsPtr; +static int BitmapGetRenderIndex(FontRendererPtr renderer); /* * the readers[] and renderers[] arrays must be in the same order, @@ -104,9 +105,6 @@ static BitmapFileFunctionsRec readers[] = { { bdfReadFont, bdfReadFontInfo} , # endif #endif -#if XFONT_PCFFORMAT - { pmfReadFont, pcfReadFontInfo} , -#endif }; @@ -150,7 +148,7 @@ BitmapOpenBitmap (FontPathElementPtr fpe, FontPtr *ppFont, int flags, FontFileClose (file); if (ret != Successful) { - xfree(pFont); + free(pFont); } else { *ppFont = pFont; } @@ -235,11 +233,6 @@ static FontRendererRec renderers[] = { CAPABILITIES }, # endif #endif -#if XFONT_PCFFORMAT - { ".pmf", 4, BitmapOpenBitmap, BitmapOpenScalable, - BitmapGetInfoBitmap, BitmapGetInfoScalable, 0, - CAPABILITIES } -#endif }; #define numRenderers (sizeof renderers / sizeof renderers[0]) @@ -258,7 +251,7 @@ BitmapRegisterFontFileFunctions (void) * the font info reader, and the bitmap scaling routine. All users * of this routine must be kept in step with the renderer array. */ -int +static int BitmapGetRenderIndex(FontRendererPtr renderer) { return renderer - renderers; -- cgit v1.2.3