diff --git a/randr/randrstr.h b/randr/randrstr.h index 136a47e43..99022c313 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -542,6 +542,13 @@ Bool RRCrtcGammaSetSize (RRCrtcPtr crtc, int size); +/* + * Set the allowable rotations of the CRTC. + */ +Bool +RRCrtcSetRotations (RRCrtcPtr crtc, + Rotation rotations); + /* * Destroy a Crtc at shutdown */ diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index 076742077..cfd4da9f7 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -426,6 +426,16 @@ RRCrtcGammaSetSize (RRCrtcPtr crtc, return TRUE; } +/* + * Set the allowable rotations of the CRTC. + */ +Bool +RRCrtcSetRotations (RRCrtcPtr crtc, + Rotation rotations) +{ + crtc->rotations = rotations; +} + /* * Initialize crtc type */