diff options
author | Eric Anholt <eric@anholt.net> | 2007-01-17 14:35:31 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-01-17 16:02:30 -0800 |
commit | 67a152c43cb7231695b99030c952c52d4edd1e65 (patch) | |
tree | 2aeb9608b38e3fabf473745b4540a0250c5d912c /src/i830_randr.c | |
parent | a52df90ffcb19e7c0a3b8018db3cd1391a3ec343 (diff) |
Set all CRTCs' allowable rotations when xf86RandR12SetRotations() is called.
Diffstat (limited to 'src/i830_randr.c')
-rw-r--r-- | src/i830_randr.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/i830_randr.c b/src/i830_randr.c index 3aaf88b1..c1e9ac08 100644 --- a/src/i830_randr.c +++ b/src/i830_randr.c @@ -494,8 +494,19 @@ void xf86RandR12SetRotations (ScreenPtr pScreen, Rotation rotations) { XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); + ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn); + int c; randrp->supported_rotations = rotations; + +#if RANDR_12_INTERFACE + for (c = 0; c < config->num_crtc; c++) { + xf86CrtcPtr crtc = config->crtc[c]; + + RRCrtcSetRotations (crtc->randr_crtc, rotations); + } +#endif } void |