fb: unexport fbInitializeDrawable() and make it static

Only used inside fbpixmap.c (where it's defined), so can be static.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-04-22 21:08:03 +02:00
parent 31548e3705
commit 97e82b3812
2 changed files with 6 additions and 3 deletions

View File

@ -110,13 +110,10 @@ typedef FbBits FbStip;
typedef int FbStride; typedef int FbStride;
#ifdef FB_DEBUG #ifdef FB_DEBUG
extern _X_EXPORT void fbInitializeDrawable(DrawablePtr d);
extern _X_EXPORT void fbSetBits(FbStip * bits, int stride, FbStip data); extern _X_EXPORT void fbSetBits(FbStip * bits, int stride, FbStip data);
#define FB_HEAD_BITS (FbStip) (0xbaadf00d) #define FB_HEAD_BITS (FbStip) (0xbaadf00d)
#define FB_TAIL_BITS (FbStip) (0xbaddf0ad) #define FB_TAIL_BITS (FbStip) (0xbaddf0ad)
#else
#define fdInitializeDrawable(d)
#endif #endif
#include "fbrop.h" #include "fbrop.h"

View File

@ -26,6 +26,12 @@
#include "fb/fb_priv.h" #include "fb/fb_priv.h"
#ifdef FB_DEBUG
static void fbInitializeDrawable(DrawablePtr pDrawable);
#else
static inline void fbInitializeDrawable(DrawablePtr pDrawable) {}
#endif
PixmapPtr PixmapPtr
fbCreatePixmap(ScreenPtr pScreen, int width, int height, int depth, fbCreatePixmap(ScreenPtr pScreen, int width, int height, int depth,
unsigned usage_hint) unsigned usage_hint)