diff options
author | Eric Anholt <eric@anholt.net> | 2006-12-19 12:49:55 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2006-12-19 12:49:55 -0800 |
commit | ff1223142aedcf888665de6e4d7d5d03a55b2688 (patch) | |
tree | d96549956544b557d907fe684fda7b1e76335eed | |
parent | 3b5703c7fa08e63f2a31be7496ded9c70015946d (diff) |
Only erase curMode in i830DisableUnusedFunctions when the CRTC is disabled.
This bug resulted in broken xinerama, among other issues.
-rw-r--r-- | src/i830_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_display.c b/src/i830_display.c index 4899763b..88f6f163 100644 --- a/src/i830_display.c +++ b/src/i830_display.c @@ -987,9 +987,9 @@ i830DisableUnusedFunctions(ScrnInfoPtr pScrn) xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Disabling CRTC %s\n", pipe_name); crtc->funcs->dpms(crtc, DPMSModeOff); - } - memset(&crtc->curMode, 0, sizeof(crtc->curMode)); + memset(&crtc->curMode, 0, sizeof(crtc->curMode)); + } } } |