diff options
author | Eric Anholt <eric@anholt.net> | 2007-01-17 14:34:42 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-01-17 14:34:42 -0800 |
commit | 42a48786acf54f83167de4f561526986d4e27033 (patch) | |
tree | 6a1edf086f84b6c52f757ffffab46859bb61d2a8 /randr | |
parent | cde17015dff1ced2aabb8b76c08f9110237821a5 (diff) |
Add a setter for randr_crtc->rotations.
Diffstat (limited to 'randr')
-rw-r--r-- | randr/randrstr.h | 7 | ||||
-rw-r--r-- | randr/rrcrtc.c | 10 |
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 |