summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-07-03 20:14:59 +1000
committerDave Airlie <airlied@redhat.com>2008-07-03 20:15:31 +1000
commit22c6ca0d5d226c725ba448e5db63fdba9e32332c (patch)
treea622cdeb042fef0f9794174ee26a6374077bf65a
parentce1a3edd52b647744cfa4433301befb437d211bb (diff)
rotate: fix rotation in conf file.
need to set modes after init accel architecture reported-by: Christoph Bartoschek <bartoschek@or.uni-bonn.de>
-rw-r--r--src/radeon_driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index a4814913..16a05307 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -3471,9 +3471,6 @@ Bool RADEONScreenInit(int scrnIndex, ScreenPtr pScreen,
/* xf86CrtcRotate() accesses pScrn->pScreen */
pScrn->pScreen = pScreen;
- if (!xf86SetDesiredModes (pScrn))
- return FALSE;
-
RADEONSaveScreen(pScreen, SCREEN_SAVER_ON);
/* Backing store setup */
@@ -3554,6 +3551,9 @@ Bool RADEONScreenInit(int scrnIndex, ScreenPtr pScreen,
info->accelOn = FALSE;
}
+ if (!xf86SetDesiredModes (pScrn))
+ return FALSE;
+
/* Init DPMS */
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, RADEON_LOGLEVEL_DEBUG,
"Initializing DPMS\n");