randr: make RRCrtcPendingTransform() static

only used locally inside rrcrtc.c, 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:25:13 +02:00
parent 0f43098a9b
commit 2484bcf474
2 changed files with 11 additions and 16 deletions

View File

@ -661,12 +661,6 @@ extern _X_EXPORT void
*/
extern _X_EXPORT RRTransformPtr RRCrtcGetTransform(RRCrtcPtr crtc);
/*
* Check whether the pending and current transforms are the same
*/
extern _X_EXPORT Bool
RRCrtcPendingTransform(RRCrtcPtr crtc);
/*
* Destroy a Crtc at shutdown
*/

View File

@ -720,6 +720,17 @@ rrCheckEmulated(RROutputPtr output)
return FALSE;
}
/*
* Check whether the pending and current transforms are the same
*/
static inline Bool
RRCrtcPendingTransform(RRCrtcPtr crtc)
{
return !RRTransformEqual(&crtc->client_current_transform,
&crtc->client_pending_transform);
}
/*
* Request that the Crtc be reconfigured
*/
@ -854,16 +865,6 @@ RRCrtcGetTransform(RRCrtcPtr crtc)
return transform;
}
/*
* Check whether the pending and current transforms are the same
*/
Bool
RRCrtcPendingTransform(RRCrtcPtr crtc)
{
return !RRTransformEqual(&crtc->client_current_transform,
&crtc->client_pending_transform);
}
/*
* Destroy a Crtc at shutdown
*/