Fix ati video card detect.

master3.3
Mike Hiretsky 13 years ago
parent 55d661d804
commit d3ee1a0c56

@ -134,16 +134,16 @@ class VariableHrVideo(ReadonlyVariable):
def get(self):
"""Videocard vendor"""
line = self.Get('hr_video_name')
if "nVidia" in line or "GeForce" in line:
line = self.Get('hr_video_name').lower()
if any(x in line for x in ("nvidia","geforce")):
return "nvidia"
elif "ATI" in line:
if any(x in line for x in ("ati","radeon")):
return "ati"
elif "Intel" in line:
elif "intel" in line:
return "intel"
elif "VIA" in line:
elif "via" in line:
return "via"
elif "VMware" in line:
elif "vmware" in line:
return "vmware"
else:
return "other"

Loading…
Cancel
Save