summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-05-16 15:10:10 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-05-17 11:04:58 +0300
commit248a58888dae562b3a9f636fecc5bbb46307cd9b (patch)
tree8819288f92b152c869f394cf71a452663493983a /py
parent4743ba504270cddaf35ab3629f868d72f5e2abd6 (diff)
pykmsutil: add draw_text()
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'py')
-rw-r--r--py/pykms/pykmsutil.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/pykms/pykmsutil.cpp b/py/pykms/pykmsutil.cpp
index 46b7765..cb09dea 100644
--- a/py/pykms/pykmsutil.cpp
+++ b/py/pykms/pykmsutil.cpp
@@ -49,4 +49,6 @@ void init_pykmstest(py::module &m)
m.def("draw_rect", [](MappedFramebuffer& fb, uint32_t x, uint32_t y, uint32_t w, uint32_t h, RGB color) {
draw_rect(fb, x, y, w, h, color);
} );
+ m.def("draw_text", [](MappedFramebuffer& fb, uint32_t x, uint32_t y, const string& str, RGB color) {
+ draw_text(fb, x, y, str, color); } );
}