From a90448d3be15095e03a5005d335e17f24ea747cf Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 14:20:53 +0200 Subject: [PATCH] randr: unexport and document RRCrtcGetScanoutSize() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/randrstr.h | 8 -------- randr/randrstr_priv.h | 10 ++++++++++ randr/rrpointer.c | 1 + 3 files changed, 11 insertions(+), 8 deletions(-) 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"