|
|
|
@ -55,6 +55,7 @@ class fillVars(object, cl_base.glob_attr):
|
|
|
|
|
if resolution:
|
|
|
|
|
self.Set('hr_x11_width',resolution[0])
|
|
|
|
|
return resolution[1]
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
|
def get_hr_x11_width(self):
|
|
|
|
|
"""Получить ширину экрана в пикселах"""
|
|
|
|
@ -62,6 +63,7 @@ class fillVars(object, cl_base.glob_attr):
|
|
|
|
|
if resolution:
|
|
|
|
|
self.Set('hr_x11_height',resolution[1])
|
|
|
|
|
return resolution[0]
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
|
def get_hr_x11_standart(self):
|
|
|
|
|
"""Получить ближайший стандартный размер изображения к текущему разрешению"""
|
|
|
|
@ -69,7 +71,7 @@ class fillVars(object, cl_base.glob_attr):
|
|
|
|
|
widthVal = self.Get('hr_x11_width')
|
|
|
|
|
heightVal = self.Get('hr_x11_height')
|
|
|
|
|
if not widthVal or not heightVal:
|
|
|
|
|
return None
|
|
|
|
|
return ""
|
|
|
|
|
width = int(widthVal)
|
|
|
|
|
height = int(heightVal)
|
|
|
|
|
res = [(1024,768),
|
|
|
|
|