summaryrefslogtreecommitdiff
path: root/py/tests
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2018-01-09 12:53:08 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-01-09 12:53:17 +0200
commit6369f85fe85e7121472490c37e84ca50a59cebf0 (patch)
tree4e2ccf211021800a4561f479a0a7626463cd5304 /py/tests
parent6ea6e0de706d98147c5382d6e2fb01751d327581 (diff)
trans-test.py: fix drawing outside the buffer
Diffstat (limited to 'py/tests')
-rwxr-xr-xpy/tests/trans-test.py2
1 files changed, 1 insertions, 1 deletions
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,