BlankCRT2 is set but never used. Eliminate it.

This commit is contained in:
Ian Romanick
2007-06-22 09:06:14 -07:00
parent 941c7463bb
commit 5c4d707c4e
2 changed files with 3 additions and 19 deletions

View File

@@ -660,9 +660,6 @@ typedef struct {
* \bug This field is used but never initialized.
*/
unsigned char LCDon;
#ifdef XGIDUALHEAD
Bool BlankCRT2;
#endif
Bool Blank;
int CRT1off; /* 1=CRT1 off, 0=CRT1 on */
CARD16 LCDheight; /* Vertical resolution of LCD panel */

View File

@@ -575,10 +575,6 @@ XGIDisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode,
case DPMSModeOn: /* HSync: On, VSync: On */
if (docrt1)
pXGI->Blank = FALSE;
#ifdef XGIDUALHEAD
else
pXGI->BlankCRT2 = FALSE;
#endif
sr1 = 0x00;
cr17 = 0x80;
@@ -594,10 +590,7 @@ XGIDisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode,
case DPMSModeSuspend: /* HSync: On, VSync: Off */
if (docrt1)
pXGI->Blank = TRUE;
#ifdef XGIDUALHEAD
else
pXGI->BlankCRT2 = TRUE;
#endif
sr1 = 0x20;
cr17 = 0x80;
pmreg = 0x80;
@@ -612,10 +605,7 @@ XGIDisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode,
case DPMSModeStandby: /* HSync: Off, VSync: On */
if (docrt1)
pXGI->Blank = TRUE;
#ifdef XGIDUALHEAD
else
pXGI->BlankCRT2 = TRUE;
#endif
sr1 = 0x20;
cr17 = 0x80;
pmreg = 0x40;
@@ -630,10 +620,7 @@ XGIDisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode,
case DPMSModeOff: /* HSync: Off, VSync: Off */
if (docrt1)
pXGI->Blank = TRUE;
#ifdef XGIDUALHEAD
else
pXGI->BlankCRT2 = TRUE;
#endif
sr1 = 0x20;
cr17 = 0x00;
pmreg = 0xc0;