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 <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-16 14:20:53 +02:00
parent 6d3ffc2197
commit a90448d3be
3 changed files with 11 additions and 8 deletions

View File

@ -595,14 +595,6 @@ extern _X_EXPORT Bool
extern _X_EXPORT Bool extern _X_EXPORT Bool
RRCrtcGammaSetSize(RRCrtcPtr crtc, int size); 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 * Return crtc transform
*/ */

View File

@ -193,4 +193,14 @@ void RRCrtcSetTransformSupport(RRCrtcPtr crtc, Bool transforms);
*/ */
void RRDeliverCrtcEvent(ClientPtr pClient, WindowPtr pWin, RRCrtcPtr crtc); 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_ */ #endif /* _XSERVER_RANDRSTR_PRIV_H_ */

View File

@ -23,6 +23,7 @@
#include "dix/cursor_priv.h" #include "dix/cursor_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "randr/randrstr_priv.h"
#include "randrstr.h" #include "randrstr.h"
#include "inputstr.h" #include "inputstr.h"