diff --git a/hw/xfree86/ramdac/xf86HWCurs.c b/hw/xfree86/ramdac/xf86HWCurs.c index 4ccd55eaa..e2812f9e9 100644 --- a/hw/xfree86/ramdac/xf86HWCurs.c +++ b/hw/xfree86/ramdac/xf86HWCurs.c @@ -7,6 +7,7 @@ #include #include "dix/colormap_priv.h" +#include "randr/randrstr_priv.h" #include "misc.h" #include "xf86.h" @@ -18,7 +19,6 @@ #include "cursorstr.h" #include "mi.h" #include "mipointer.h" -#include "randrstr.h" #include "xf86CursorPriv.h" #include "servermd.h" diff --git a/randr/randrstr.h b/randr/randrstr.h index bb1471012..132995106 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -595,12 +595,6 @@ extern _X_EXPORT Bool extern _X_EXPORT Bool RRCrtcGammaSetSize(RRCrtcPtr crtc, int size); -/* - * Return if the screen has any scanout_pixmap's attached - */ -extern _X_EXPORT Bool - RRHasScanoutPixmap(ScreenPtr pScreen); - /* rrdispatch.c */ extern _X_EXPORT Bool RRClientKnowsRates(ClientPtr pClient); diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index b0c0d4d8f..f36fa1189 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -242,4 +242,12 @@ void RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc); */ Bool RRReplaceScanoutPixmap(DrawablePtr pDrawable, PixmapPtr pPixmap, Bool enable); +/* + * Check whether given screen has any scanout pixmap attached + * + * @param pScreen the screen to check + * @return TRUE if the screen has a scanout pixmap attached + */ +Bool RRHasScanoutPixmap(ScreenPtr pScreen); + #endif /* _XSERVER_RANDRSTR_PRIV_H_ */