From 1a34f1966c23fbc291a56e9e747aec8eaf9ca2a4 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 29 Jan 2007 22:04:07 -0800 Subject: Export API for setting allowed CRTC rotations --- randr/randrstr.h | 6 ++++++ randr/rrcrtc.c | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/randr/randrstr.h b/randr/randrstr.h index 136a47e43..7a34b39eb 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -479,6 +479,12 @@ RRCrtcChanged (RRCrtcPtr crtc, Bool layoutChanged); RRCrtcPtr RRCrtcCreate (void *devPrivate); +/* + * Set the allowed rotations on a CRTC + */ +void +RRCrtcSetRotations (RRCrtcPtr crtc, Rotation rotations); + /* * Attach a CRTC to a screen. Once done, this cannot be * undone without destroying the CRTC; it is separate from Create diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index 93854d590..63898f83e 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -80,6 +80,15 @@ RRCrtcCreate (void *devPrivate) return crtc; } +/* + * Set the allowed rotations on a CRTC + */ +void +RRCrtcSetRotations (RRCrtcPtr crtc, Rotation rotations) +{ + crtc->rotations = rotations; +} + /* * Attach a Crtc to a screen. This is done as a separate step * so that an xf86-based driver can create CRTCs in PreInit -- cgit v1.2.3