summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-01-17 14:34:42 -0800
committerEric Anholt <eric@anholt.net>2007-01-17 14:34:42 -0800
commit42a48786acf54f83167de4f561526986d4e27033 (patch)
tree6a1edf086f84b6c52f757ffffab46859bb61d2a8
parentcde17015dff1ced2aabb8b76c08f9110237821a5 (diff)
Add a setter for randr_crtc->rotations.
-rw-r--r--randr/randrstr.h7
-rw-r--r--randr/rrcrtc.c10
2 files changed, 17 insertions, 0 deletions
diff --git a/randr/randrstr.h b/randr/randrstr.h
index 136a47e43..99022c313 100644
--- a/randr/randrstr.h
+++ b/randr/randrstr.h
@@ -543,6 +543,13 @@ RRCrtcGammaSetSize (RRCrtcPtr crtc,
int size);
/*
+ * Set the allowable rotations of the CRTC.
+ */
+Bool
+RRCrtcSetRotations (RRCrtcPtr crtc,
+ Rotation rotations);
+
+/*
* Destroy a Crtc at shutdown
*/
void
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index 076742077..cfd4da9f7 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -427,6 +427,16 @@ RRCrtcGammaSetSize (RRCrtcPtr crtc,
}
/*
+ * Set the allowable rotations of the CRTC.
+ */
+Bool
+RRCrtcSetRotations (RRCrtcPtr crtc,
+ Rotation rotations)
+{
+ crtc->rotations = rotations;
+}
+
+/*
* Initialize crtc type
*/
Bool