diff --git a/randr/randrstr.h b/randr/randrstr.h index 121d3bece..119418ce5 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -595,14 +595,6 @@ extern _X_EXPORT Bool extern _X_EXPORT Bool RRCrtcGammaSetSize(RRCrtcPtr crtc, int size); -/* - * Return the area of the frame buffer scanned out by the crtc, - * taking into account the current mode and rotation - */ - -extern _X_EXPORT void - RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height); - /* * Return crtc transform */ diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index fa7b1c2cc..94cc02660 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -193,4 +193,14 @@ void RRCrtcSetTransformSupport(RRCrtcPtr crtc, Bool transforms); */ void RRDeliverCrtcEvent(ClientPtr pClient, WindowPtr pWin, RRCrtcPtr crtc); +/* + * Return the area of the frame buffer scanned out by the crtc, + * taking into account the current mode and rotation + * + * @param crtc the CRTC to query + * @param width return buffer for width value + * @param height return buffer for height value + */ +void RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height); + #endif /* _XSERVER_RANDRSTR_PRIV_H_ */ diff --git a/randr/rrpointer.c b/randr/rrpointer.c index e1ebd9fc3..ec0f21622 100644 --- a/randr/rrpointer.c +++ b/randr/rrpointer.c @@ -23,6 +23,7 @@ #include "dix/cursor_priv.h" #include "dix/input_priv.h" +#include "randr/randrstr_priv.h" #include "randrstr.h" #include "inputstr.h"