From 95fa90362187b8d3d8439b06c90212c313d987d0 Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Wed, 15 Aug 2001 20:00:56 +0000 Subject: proper fix for fuzzy matching of ddcprobe reported video ram --- textw/xconfig_text.py | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'textw') diff --git a/textw/xconfig_text.py b/textw/xconfig_text.py index a21e058ff..887639883 100644 --- a/textw/xconfig_text.py +++ b/textw/xconfig_text.py @@ -550,17 +550,7 @@ class XConfigWindowCard: except: vidRam = 1024 - count = 0 - self.selectedRam = 0 - for size in self.videocard.possible_ram_sizes(): - #--Cards such as Mach64 and ATI Rage Mobility report 64k less ram - # than it should - small = size - 64 - if size == vidRam or small == vidRam: - self.selectedRam = count - break - count = count + 1 - + self.selectedRam = self.videocard.index_closest_ram_size(vidRam) try: vidRam = string.atoi(self.videocard.primaryCard(useProbed=1).getVideoRam()) @@ -568,16 +558,7 @@ class XConfigWindowCard: vidRam = 1024 count = 0 - self.origRam = 0 - for size in self.videocard.possible_ram_sizes(): - #--Cards such as Mach64 and ATI Rage Mobility report 64k less ram - # than it should - small = size - 64 - if size == vidRam or small == vidRam: - self.origRam = count - break - count = count + 1 - + self.origRam = self.videocard.index_closest_ram_size(vidRam) skipx = 0 while 1: -- cgit