Fix getting framebuffer resolution.

master3.3
Mike Hiretsky 13 years ago
parent 48681dcbc6
commit 88820a93c7

@ -1450,7 +1450,12 @@ class fillVars(object, glob_attr):
textLines = self._runos("/sbin/fbres 2>&1")
resolution = ""
if textLines:
resolution = "%s-32"%textLines[0]
cxx11,cyx11 = \
self.Get('os_install_x11_resolution').partition('x')[0::2]
cxfb, cyfb = textLines[0].partition('x')[0::2]
if not filter(lambda x:not x.isdigit(),[cxfb,cyfb,cxx11,cyx11])and \
int(cxx11) >= int(cxfb) and int(cyx11) >= int(cyfb):
resolution = "%s-32"%textLines[0]
return resolution or "1024x768-32@60"
def get_os_grub2_path(self):

Loading…
Cancel
Save