Remove useless structure fields CRT1ModeNo and CRT1DMode

This commit is contained in:
Ian Romanick
2007-05-02 14:39:08 -07:00
parent 95d4db3280
commit 01838c17bf
3 changed files with 1 additions and 10 deletions

View File

@@ -1202,13 +1202,6 @@ XGIBIOSSetModeCRT1(XGI_Private *XGI_Pr, PXGI_HW_DEVICE_INFO HwInfo,
/* SetPitch: Adapt to virtual size & position */
XGI_SetPitchCRT1(XGI_Pr, pScrn);
#ifdef XGIDUALHEAD
if(pXGI->DualHeadMode) {
pXGIEnt->CRT1ModeNo = ModeNo;
pXGIEnt->CRT1DMode = mode;
}
#endif
/* Reset CRT2 if changing mode on CRT1 */
#ifdef XGIDUALHEAD

View File

@@ -415,8 +415,6 @@ typedef struct {
ScrnInfoPtr pScrn_2;
unsigned char * BIOS;
XGI_Private * XGI_Pr;
int CRT1ModeNo; /* Current display mode for CRT1 */
DisplayModePtr CRT1DMode; /* Current display mode for CRT1 */
int CRT2ModeNo; /* Current display mode for CRT2 */
Bool CRT2ModeSet; /* CRT2 mode has been set */
unsigned char CRT2CR30, CRT2CR31, CRT2CR35, CRT2CR38;

View File

@@ -2507,7 +2507,7 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags)
/* First Head (always CRT2) */
pXGI->SecondHead = FALSE;
pXGIEnt->pScrn_1 = pScrn;
pXGIEnt->CRT1ModeNo = pXGIEnt->CRT2ModeNo = -1;
pXGIEnt->CRT2ModeNo = -1;
pXGIEnt->CRT2ModeSet = FALSE;
pXGI->DualHeadMode = TRUE;
pXGIEnt->DisableDual = FALSE;