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++ | |
parent | 8a6658873a2a130eec21382a2f5bd4a4eff0da6e (diff) |
crtc: add disable_plane()
Diffstat (limited to 'libkms++')
-rw-r--r-- | libkms++/crtc.cpp | 5 | ||||
-rw-r--r-- | libkms++/crtc.h | 2 |
2 files changed, 7 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); diff --git a/libkms++/crtc.h b/libkms++/crtc.h index ec376e4..48baf1b 100644 --- a/libkms++/crtc.h +++ b/libkms++/crtc.h @@ -22,6 +22,8 @@ public: int32_t dst_x, int32_t dst_y, uint32_t dst_w, uint32_t dst_h, float src_x, float src_y, float src_w, float src_h); + int disable_plane(Plane* plane); + int page_flip(Framebuffer& fb, void *data); int page_flip(Framebuffer& fb, PageFlipHandlerBase* data) { return page_flip(fb, (void*)data); } |