diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-06 19:56:26 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-07 17:04:28 +0300 |
commit | ded84bf2620313b701af9c88b0f6c6ada2c70eaa (patch) | |
tree | fc836815746d044f46fc99dac0782e8472ac2eb3 /py/gamma.py | |
parent | a688d32d209a45627da3e80128a933d70f5d48b6 (diff) |
py: fix scripts when there's no current crtc
Diffstat (limited to 'py/gamma.py')
-rwxr-xr-x | py/gamma.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/py/gamma.py b/py/gamma.py index 6dfd935..e1daa43 100755 --- a/py/gamma.py +++ b/py/gamma.py @@ -11,8 +11,7 @@ card = pykms.Card() conn = card.get_first_connected_connector() mode = conn.get_default_mode() -crtc = conn.get_current_crtc() -mode = conn.get_default_mode() +crtc = get_crtc_for_connector(conn) fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); pykms.draw_test_pattern(fb); |