|
|
@ -52,13 +52,20 @@ class ResolutionVariable(VideoVariable):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
Abstract resolution variable
|
|
|
|
Abstract resolution variable
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
fbres = False
|
|
|
|
def choice(self):
|
|
|
|
def choice(self):
|
|
|
|
return ["800x600", "800x480", "640x480", "2560x1600", "2560x1440",
|
|
|
|
resolutions = ["800x600", "800x480", "640x480", "2560x1600",
|
|
|
|
"2048x1152", "1920x1200", "1920x1080", "1680x945", "1680x1050",
|
|
|
|
"2560x1440", "2048x1152", "1920x1200", "1920x1080",
|
|
|
|
"1600x900", "1600x768", "1600x1200", "1440x900", "1400x1050",
|
|
|
|
"1680x945", "1680x1050", "1600x900", "1600x768",
|
|
|
|
"1368x768", "1366x768", "1360x768", "1280x800", "1280x768",
|
|
|
|
"1600x1200", "1440x900", "1400x1050", "1368x768",
|
|
|
|
"1280x720", "1280x1024", "1200x800", "1024x600", "1024x576",
|
|
|
|
"1366x768", "1360x768", "1280x800", "1280x768",
|
|
|
|
"1024x768"]
|
|
|
|
"1280x720", "1280x1024", "1200x800", "1024x600",
|
|
|
|
|
|
|
|
"1024x576", "1024x768"]
|
|
|
|
|
|
|
|
if self.fbres:
|
|
|
|
|
|
|
|
return map(lambda x:"%s-32"%x,
|
|
|
|
|
|
|
|
resolutions)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
return resolutions
|
|
|
|
|
|
|
|
|
|
|
|
def check(self,value):
|
|
|
|
def check(self,value):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
@ -185,6 +192,7 @@ class VariableOsInstallFbResolution(ResolutionVariable):
|
|
|
|
opt = ['--fb']
|
|
|
|
opt = ['--fb']
|
|
|
|
metavalue = "<width>x<height>"
|
|
|
|
metavalue = "<width>x<height>"
|
|
|
|
xorg_need = False
|
|
|
|
xorg_need = False
|
|
|
|
|
|
|
|
fbres = True
|
|
|
|
|
|
|
|
|
|
|
|
def init(self):
|
|
|
|
def init(self):
|
|
|
|
self.help = _("set framebuffer resolution")
|
|
|
|
self.help = _("set framebuffer resolution")
|
|
|
@ -205,7 +213,7 @@ class VariableOsInstallFbResolution(ResolutionVariable):
|
|
|
|
[cxfb,cyfb,cxx11,cyx11])and \
|
|
|
|
[cxfb,cyfb,cxx11,cyx11])and \
|
|
|
|
int(cxx11) >= int(cxfb) and int(cyx11) >= int(cyfb):
|
|
|
|
int(cxx11) >= int(cxfb) and int(cyx11) >= int(cyfb):
|
|
|
|
resolution = "%s-32"%textLines[0]
|
|
|
|
resolution = "%s-32"%textLines[0]
|
|
|
|
return resolution or "1024x768-32@60"
|
|
|
|
return resolution or "1024x768-32"
|
|
|
|
|
|
|
|
|
|
|
|
class VariableOsInstallX11ServerSet(ReadonlyVariable):
|
|
|
|
class VariableOsInstallX11ServerSet(ReadonlyVariable):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|