mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Added additional checks to library mode matching
This commit is contained in:
parent
48e27d30f9
commit
8b73a51fe3
@ -1017,12 +1017,12 @@ namespace DisplayMagicianShared
|
|||||||
// Figure out the Video Cards and see what mode we want
|
// Figure out the Video Cards and see what mode we want
|
||||||
// Get a list of all the PCI Vendor IDs
|
// Get a list of all the PCI Vendor IDs
|
||||||
List<string> videoCardVendors = WinLibrary.GetLibrary().GetCurrentPCIVideoCardVendors();
|
List<string> videoCardVendors = WinLibrary.GetLibrary().GetCurrentPCIVideoCardVendors();
|
||||||
if (NVIDIALibrary.GetLibrary().PCIVendorIDs.All(value => videoCardVendors.Contains(value)))
|
if (NVIDIALibrary.GetLibrary().IsInstalled && NVIDIALibrary.GetLibrary().PCIVendorIDs.All(value => videoCardVendors.Contains(value)))
|
||||||
{
|
{
|
||||||
// We detected a NVIDIA video card in the computer
|
// We detected a NVIDIA video card in the computer
|
||||||
_currentVideoMode = VIDEO_MODE.NVIDIA;
|
_currentVideoMode = VIDEO_MODE.NVIDIA;
|
||||||
}
|
}
|
||||||
else if (AMDLibrary.GetLibrary().PCIVendorIDs.All(value => videoCardVendors.Contains(value)))
|
else if (AMDLibrary.GetLibrary().IsInstalled && AMDLibrary.GetLibrary().PCIVendorIDs.All(value => videoCardVendors.Contains(value)))
|
||||||
{
|
{
|
||||||
// We detected an AMD video card in the computer
|
// We detected an AMD video card in the computer
|
||||||
_currentVideoMode = VIDEO_MODE.AMD;
|
_currentVideoMode = VIDEO_MODE.AMD;
|
||||||
|
Loading…
Reference in New Issue
Block a user