if(*ModeNo <= 0x03) { if(!(VGAINFO & 0x80)) (*ModeIdIndex)++; if(VGAINFO & 0x10)    (*ModeIdIndex)++; /* 400 lines  */ /* else 350 lines  */ 
if((*ModeNo) <= 0x03) { if(!(VGAINFO & 0x80)) (*ModeIdIndex)++; if(VGAINFO & 0x10)    (*ModeIdIndex)++; /* 400 lines  */ /* else 350 lines  */ 
SiS_SearchModeID(SiS_Private *SiS_Pr, USHORT *ModeNo, USHORT *ModeIdIndex){   UCHAR VGAINFO = SiS_Pr->SiS_VGAINFO;   if(*ModeNo <= 0x13) {      if((*ModeNo) <= 0x05) (*ModeNo) |= 0x01;      for(*ModeIdIndex = 0; ;(*ModeIdIndex)++) {         if(SiS_Pr->SiS_SModeIDTable[*ModeIdIndex].St_ModeID == (*ModeNo)) break;         if(SiS_Pr->SiS_SModeIDTable[*ModeIdIndex].St_ModeID == 0xFF)   return FALSE;      }      if(*ModeNo == 0x07) {          if(VGAINFO & 0x10) (*ModeIdIndex)++;   /* 400 lines */          /* else 350 lines */      }      if(*ModeNo <= 0x03) {         if(!(VGAINFO & 0x80)) (*ModeIdIndex)++;         if(VGAINFO & 0x10)    (*ModeIdIndex)++; /* 400 lines  */         /* else 350 lines  */      }      /* else 200 lines  */   } else {      for(*ModeIdIndex = 0; ;(*ModeIdIndex)++) {         if(SiS_Pr->SiS_EModeIDTable[*ModeIdIndex].Ext_ModeID == (*ModeNo)) break;         if(SiS_Pr->SiS_EModeIDTable[*ModeIdIndex].Ext_ModeID == 0xFF)      return FALSE;      }   }   return TRUE;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init.c/clean/drivers/video/sis/init.c