summaryrefslogtreecommitdiff
path: root/py/gamma.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/gamma.py')
-rwxr-xr-xpy/gamma.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/gamma.py b/py/gamma.py
index e1daa43..a6b68cc 100755
--- a/py/gamma.py
+++ b/py/gamma.py
@@ -8,10 +8,10 @@ card = pykms.Card()
card = 0
card = pykms.Card()
-
-conn = card.get_first_connected_connector()
+res = pykms.ResourceManager(card)
+conn = res.reserve_connector()
+crtc = res.reserve_crtc(conn)
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);