From 2ec00762f47bffb03568605baf1e572859f63aaa Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 4 Jun 2025 14:35:21 +0200 Subject: [PATCH] randr: re-export RRCrtcGetScanoutSize() for Nvidia legacy NVidia's proprietary driver does it's own randr implementation (why ?) and needs this function for this. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/randrstr.h | 11 +++++++++++ randr/randrstr_priv.h | 10 ---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/randr/randrstr.h b/randr/randrstr.h index 7e178e1cb..f0d767b03 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -682,6 +682,17 @@ extern _X_EXPORT RESTYPE RROutputType; /* X resource type: Randr OUTPUT */ _X_EXPORT /* just for Nvidia legacy */ Bool RROutputSetNonDesktop(RROutputPtr output, Bool non_desktop); +/* + * 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 + */ +_X_EXPORT /* just for Nvidia legacy */ +void RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height); + #endif /* _RANDRSTR_H_ */ /* diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index 23689ff1d..f76dc5453 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -190,16 +190,6 @@ 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); - /* * Retrieve CRTCs current transform *