summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-10-16 16:26:58 +0900
committerMichel Dänzer <michel@daenzer.net>2015-10-16 16:26:58 +0900
commit548e97b3b7d1e94075a54ca2bb4eb683025098a7 (patch)
tree751b1c8a95fafed29352baf0f85ecd121a86ca8d
parentce9914af8d8d5243977023ec7b09c605f9cca8b4 (diff)
Call xf86CrtcRotate from initial drmmode_set_desired_modes call
Fixes various problems when rotation is specified in xorg.conf. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92475 Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/drmmode_display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 623124eb..64e79d45 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -2240,6 +2240,8 @@ Bool drmmode_set_desired_modes(ScrnInfoPtr pScrn, drmmode_ptr drmmode,
crtc->rotation = crtc->desiredRotation;
crtc->x = crtc->desiredX;
crtc->y = crtc->desiredY;
+ if (!xf86CrtcRotate(crtc))
+ return FALSE;
}
}
return TRUE;