trans-test.py: fix drawing outside the buffer
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 9 Jan 2018 10:53:08 +0000 (12:53 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 9 Jan 2018 10:53:17 +0000 (12:53 +0200)
py/tests/trans-test.py

index a16f2542dcc9d69b34aa045c0b602ce40ba6afb3..8b8e6c5ce9f528719bef23f25e640fd76aafc71d 100755 (executable)
@@ -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,