Restore a few important lines from 89ace3e81f

Typical results were failure to sync, and a black screen.
This commit is contained in:
Eric Anholt 2007-01-29 17:10:14 -08:00
parent 67c6a490e6
commit 9da1791eec
1 changed files with 5 additions and 0 deletions

View File

@ -148,6 +148,11 @@ xf86SetModeCrtc(DisplayModePtr p, int adjustFlags)
p->CrtcVSyncEnd *= p->VScan;
p->CrtcVTotal *= p->VScan;
}
p->CrtcVBlankStart = min(p->CrtcVSyncStart, p->CrtcVDisplay);
p->CrtcVBlankEnd = max(p->CrtcVSyncEnd, p->CrtcVTotal);
p->CrtcHBlankStart = min(p->CrtcHSyncStart, p->CrtcHDisplay);
p->CrtcHBlankEnd = max(p->CrtcHSyncEnd, p->CrtcHTotal);
p->CrtcHAdjusted = FALSE;
p->CrtcVAdjusted = FALSE;
}