From 67a152c43cb7231695b99030c952c52d4edd1e65 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 17 Jan 2007 14:35:31 -0800 Subject: Set all CRTCs' allowable rotations when xf86RandR12SetRotations() is called. --- src/i830_randr.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/i830_randr.c') 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 -- cgit v1.2.3