diff options
-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); } |