diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-04-25 23:19:16 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-04-25 23:19:16 +0200 |
commit | cd91a3c251dfd0b9d4e1230b6f9dd498e46e8fb6 (patch) | |
tree | e68e603b3d70e8299c316ef379c624e0fb329efb /src/glamo-kms-driver.c | |
parent | 77b6d1b7363d3ff28f063ed92c9ed47194f70b20 (diff) |
Support newer modesetting callbacks to allow rotation
Diffstat (limited to 'src/glamo-kms-driver.c')
-rw-r--r-- | src/glamo-kms-driver.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glamo-kms-driver.c b/src/glamo-kms-driver.c index 1dce5d8..ce87caa 100644 --- a/src/glamo-kms-driver.c +++ b/src/glamo-kms-driver.c @@ -133,10 +133,16 @@ void GlamoKMSAdjustFrame(int scrnIndex, int x, int y, int flags) xf86CrtcPtr crtc = output->crtc; if (crtc && crtc->enabled) { +#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,5,0,0,0) + crtc->funcs->set_mode_major(crtc, pScrn->currentMode, + crtc->rotation, x, y); +#else crtc->funcs->mode_set(crtc, pScrn->currentMode, pScrn->currentMode, x, y); + +#endif crtc->x = output->initial_x + x; crtc->y = output->initial_y + y; } |