From 7232805379344c8f000ba16f87821a9d2318e202 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 8 Mar 2016 13:48:47 +0200 Subject: crtc: add disable_plane() --- libkms++/crtc.cpp | 5 +++++ libkms++/crtc.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'libkms++') 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); } -- cgit v1.2.3