From 5f91adf017fec96d5f5fb37b10a4a4546c322af4 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 5 Jun 2025 11:07:55 +0200 Subject: [PATCH] randr: re-export RRCrtcGetTransform() 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 | 9 +++++++++ randr/randrstr_priv.h | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/randr/randrstr.h b/randr/randrstr.h index f0d767b03..b4122e0a4 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -693,6 +693,15 @@ Bool RROutputSetNonDesktop(RROutputPtr output, Bool non_desktop); _X_EXPORT /* just for Nvidia legacy */ void RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height); +/* + * Retrieve CRTCs current transform + * + * @param crtc the CRTC to query + * @return pointer to CRTCs current transform + */ +_X_EXPORT /* just for Nvidia legacy */ +RRTransformPtr RRCrtcGetTransform(RRCrtcPtr crtc); + #endif /* _RANDRSTR_H_ */ /* diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index f76dc5453..e1dfee905 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -190,14 +190,6 @@ void RRCrtcSetTransformSupport(RRCrtcPtr crtc, Bool transforms); */ void RRDeliverCrtcEvent(ClientPtr pClient, WindowPtr pWin, RRCrtcPtr crtc); -/* - * Retrieve CRTCs current transform - * - * @param crtc the CRTC to query - * @return pointer to CRTCs current transform - */ -RRTransformPtr RRCrtcGetTransform(RRCrtcPtr crtc); - /* * Destroy a Crtc at shutdown *