X-Git-Url: https://git.ti.com/gitweb?p=android%2Fexternal-libkmsxx.git;a=blobdiff_plain;f=kms%2B%2B%2Fsrc%2Fcrtc.cpp;h=4c2f5ce7a2623a8595238f6ccad1fe01f16570dd;hp=bad7d315aa854ce199e9eadb0825823b45fc78ac;hb=3174f3efd6768667e568a27ac98ca04d063a9071;hpb=4f97a45fba58743a1ccd1f905cc5207d4d5045bf 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