summaryrefslogtreecommitdiff
path: root/kms++/src
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-12-19 17:18:48 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-12-20 09:18:28 +0200
commit3174f3efd6768667e568a27ac98ca04d063a9071 (patch)
treeaf7996ffc08cb397e511767750527db8023ec1c0 /kms++/src
parent4f97a45fba58743a1ccd1f905cc5207d4d5045bf (diff)
crtc: add disable_mode()
Add crtc::disable_mode() for disabling the crtc. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/src')
-rw-r--r--kms++/src/crtc.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kms++/src/crtc.cpp b/kms++/src/crtc.cpp
index bad7d31..4c2f5ce 100644
--- a/kms++/src/crtc.cpp
+++ b/kms++/src/crtc.cpp
@@ -60,6 +60,11 @@ int Crtc::set_mode(Connector* conn, Framebuffer& fb, const Videomode& mode)
conns, 1, &drmmode);
}
+int Crtc::disable_mode()
+{
+ return drmModeSetCrtc(card().fd(), id(), 0, 0, 0, 0, 0, 0);
+}
+
static inline uint32_t conv(float x)
{
// XXX fix the conversion for fractional part