Merge pull request #121 from Waester/dev-pr

Partially support modes with non-standard names
This commit is contained in:
Phillip Berndt 2018-10-19 15:40:42 +02:00 committed by GitHub
commit 781b60a19e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -638,7 +638,8 @@ def get_fb_dimensions(configuration):
if "off" in output.options or not output.edid:
continue
# This won't work with all modes -- but it's a best effort.
o_width, o_height = map(int, output.options["mode"].split("x"))
o_mode = re.search("[0-9]{3,}x[0-9]{3,}", output.options["mode"]).group(0)
o_width, o_height = map(int, o_mode.split("x"))
if "transform" in output.options:
a, b, c, d, e, f, g, h, i = map(float, output.options["transform"].split(","))
w = (g * o_width + h * o_height + i)