summaryrefslogtreecommitdiff
path: root/src/radeon_crtc.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-04-04 16:05:20 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-04-04 18:44:08 -0400
commitf8c7d6a6162196a743f6885ecaf63ba50de1722a (patch)
treeaf0b212d4804b6950b3595e3add55a6c62e9aa1c /src/radeon_crtc.c
parenta707d355c3c6ff92252c5a060a1fc32d97547552 (diff)
DCE3/3.2: cleanup dpms after previous changes
Diffstat (limited to 'src/radeon_crtc.c')
-rw-r--r--src/radeon_crtc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c
index cd0d55e8..4b508ce0 100644
--- a/src/radeon_crtc.c
+++ b/src/radeon_crtc.c
@@ -115,6 +115,9 @@ radeon_crtc_mode_prepare(xf86CrtcPtr crtc)
{
RADEONCrtcPrivatePtr radeon_crtc = crtc->driver_private;
+ if (radeon_crtc->initialized)
+ radeon_crtc_dpms(crtc, DPMSModeOff);
+
if (radeon_crtc->enabled)
crtc->funcs->hide_cursor(crtc);
}
@@ -283,6 +286,8 @@ radeon_crtc_mode_commit(xf86CrtcPtr crtc)
{
if (crtc->scrn->pScreen != NULL)
xf86_reload_cursors(crtc->scrn->pScreen);
+
+ radeon_crtc_dpms(crtc, DPMSModeOn);
}
void