diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-03-08 13:48:47 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-03-08 15:42:47 +0200 |
commit | 7232805379344c8f000ba16f87821a9d2318e202 (patch) | |
tree | 675692edfa61fc945b5df48fb383a6b2e0ae3b49 /libkms++/crtc.cpp | |
parent | 8a6658873a2a130eec21382a2f5bd4a4eff0da6e (diff) |
crtc: add disable_plane()
Diffstat (limited to 'libkms++/crtc.cpp')
-rw-r--r-- | libkms++/crtc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libkms++/crtc.cpp b/libkms++/crtc.cpp index 6d5ee02..c6d79e9 100644 --- a/libkms++/crtc.cpp +++ b/libkms++/crtc.cpp @@ -75,6 +75,11 @@ int Crtc::set_plane(Plane* plane, Framebuffer& fb, conv(src_x), conv(src_y), conv(src_w), conv(src_h)); } +int Crtc::disable_plane(Plane* plane) +{ + return drmModeSetPlane(card().fd(), plane->id(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +} + int Crtc::page_flip(Framebuffer& fb, void *data) { return drmModePageFlip(card().fd(), id(), fb.id(), DRM_MODE_PAGE_FLIP_EVENT, data); |