void cirProbeDDC(ScrnInfoPtr pScrn, int index) { vbeInfoPtr pVbe; if (xf86LoadSubModule(pScrn, "vbe")) { xf86LoaderReqSymLists(vbeSymbols,NULL); pVbe = VBEInit(NULL,index); ConfiguredMonitor = vbeDoEDID(pVbe, NULL); vbeFree(pVbe); } }
void cirProbeDDC(ScrnInfoPtr pScrn, int index) { vbeInfoPtr pVbe; ModuleDescPtr pMod; if ((pMod = xf86LoadVBEModule(pScrn))) { xf86LoaderModReqSymLists(pMod, vbeSymbols,NULL); pVbe = VBEInit(NULL,index); ConfiguredMonitor = vbeDoEDID(pVbe, NULL); vbeFree(pVbe); xf86UnloadSubModule(pMod); } }
/* * Intializes a proper video mode, which is supported by the OS, the video card and the monitor (and is beautiful). */ void OutputInit() { // If VBE is present, initialize VBE for a graphical mode. if(BIT.Video.VideoFlags & VBE_PRESENT) { CurrentLevel = LEVEL_VBE; VBEInit(); } // Else, if VGA is present, initialize VGA for a graphical mode. else if(BIT.Video.VideoFlags & VGA_PRESENT) { CurrentLevel = LEVEL_VGA; VGAInit(); } else { AbortBoot("Unable to find any suitable display system (VGA, VBE).\n"); } // Open the file, and get it's information. BIT.Video.BackgroundImg = BootFilesBGImg(); }