From 6369f85fe85e7121472490c37e84ca50a59cebf0 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 9 Jan 2018 12:53:08 +0200 Subject: trans-test.py: fix drawing outside the buffer --- py/tests/trans-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/tests/trans-test.py b/py/tests/trans-test.py index a16f254..8b8e6c5 100755 --- a/py/tests/trans-test.py +++ b/py/tests/trans-test.py @@ -77,7 +77,7 @@ def test_am5_trans_src(): fb = fbs[1] pykms.draw_rect(fb, 0, 0, fb.width, fb.height, pykms.cyan) - pykms.draw_rect(fb, 100, 100, 500, 500, pykms.purple) + pykms.draw_rect(fb, 100, 100, fb.width - 200, fb.height - 200, pykms.purple) crtc.set_props({ "trans-key-mode": 2, -- cgit v1.2.3