From ded84bf2620313b701af9c88b0f6c6ada2c70eaa Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 6 Jun 2016 19:56:26 +0300 Subject: py: fix scripts when there's no current crtc --- py/gamma.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'py/gamma.py') 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); -- cgit v1.2.3