mirror of
https://github.com/X11Libre/xf86-video-xgi.git
synced 2026-03-24 01:24:35 +00:00
BlankCRT2 is set but never used. Eliminate it.
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user