From d29da28c7f2a0212d834136fe64fb8ca96a0a235 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 28 Oct 2019 13:31:30 +0200 Subject: kmsmodeview.py: update to current kms++ api --- py/tests/kmsmodeview.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/py/tests/kmsmodeview.py b/py/tests/kmsmodeview.py index 355db02..0372d0a 100755 --- a/py/tests/kmsmodeview.py +++ b/py/tests/kmsmodeview.py @@ -293,8 +293,11 @@ def mode_to_str(mode): mode_buttons = [] card = pykms.Card() -conn = card.get_first_connected_connector() -crtc = conn.get_current_crtc() + +res = pykms.ResourceManager(card) +conn = res.reserve_connector() +crtc = res.reserve_crtc(conn) +plane = res.reserve_generic_plane(crtc) modes = conn.get_modes() i = 0 for m in modes: -- cgit v1.2.3