summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2007-01-29 22:04:07 -0800
committerKeith Packard <keithp@neko.keithp.com>2007-01-29 22:04:07 -0800
commit1a34f1966c23fbc291a56e9e747aec8eaf9ca2a4 (patch)
treea20c9fd071577a4d65de85489d6a75d7d5f4acdf
parentceca97cb84385da8b3178671f811af9bc61558f7 (diff)
Export API for setting allowed CRTC rotations
-rw-r--r--randr/randrstr.h6
-rw-r--r--randr/rrcrtc.c9
2 files changed, 15 insertions, 0 deletions
diff --git a/randr/randrstr.h b/randr/randrstr.h
index 136a47e43..7a34b39eb 100644
--- a/randr/randrstr.h
+++ b/randr/randrstr.h
@@ -480,6 +480,12 @@ 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
* only to allow an xf86-based driver to create objects in preinit
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index 93854d590..63898f83e 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -81,6 +81,15 @@ RRCrtcCreate (void *devPrivate)
}
/*
+ * 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
* before the Screen has been created