diff --git a/randr/randrstr.h b/randr/randrstr.h index cd37c6afe..3b607c083 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -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 */ diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index e7cf3f01c..6abdc8621 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -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 */