summaryrefslogtreecommitdiff
path: root/py/pykms
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-10-20 11:33:53 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-10-20 11:34:31 +0300
commitd556f70824727e4e0e4c8b04592b8f3a23733596 (patch)
tree4de49103e6f649735210ecd94fa71a90f92a9c65 /py/pykms
parent3da8bff960177bbbd2dc86849846e3b6ec97bc79 (diff)
Crtc: add set_mode() which doesn't take a fb
Diffstat (limited to 'py/pykms')
-rw-r--r--py/pykms/pykmsbase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp
index 258167a..fe4bc46 100644
--- a/py/pykms/pykmsbase.cpp
+++ b/py/pykms/pykmsbase.cpp
@@ -50,7 +50,8 @@ void init_pykmsbase(py::module &m)
;
py::class_<Crtc, Crtc*>(m, "Crtc", py::base<DrmPropObject>())
- .def("set_mode", &Crtc::set_mode)
+ .def("set_mode", (int (Crtc::*)(Connector*, const Videomode&))&Crtc::set_mode)
+ .def("set_mode", (int (Crtc::*)(Connector*, Framebuffer&, const Videomode&))&Crtc::set_mode)
.def("disable_mode", &Crtc::disable_mode)
.def("page_flip",
[](Crtc* self, Framebuffer& fb, uint32_t data)