From 2484bcf47435ae5ccb6c7aa9dde42969542d4ab4 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 14:25:13 +0200 Subject: [PATCH] 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 --- randr/randrstr.h | 6 ------ randr/rrcrtc.c | 21 +++++++++++---------- 2 files changed, 11 insertions(+), 16 deletions(-) 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 */