From a42ce13524c52fabac747dde2fd5ab6e15b43139 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 10 Feb 2017 11:13:05 +0200 Subject: omapfb: add constructor with fourcc --- kms++/src/omap/omapframebuffer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kms++/src') diff --git a/kms++/src/omap/omapframebuffer.cpp b/kms++/src/omap/omapframebuffer.cpp index a3a696d..e1e2234 100644 --- a/kms++/src/omap/omapframebuffer.cpp +++ b/kms++/src/omap/omapframebuffer.cpp @@ -22,6 +22,11 @@ using namespace std; namespace kms { +OmapFramebuffer::OmapFramebuffer(OmapCard& card, uint32_t width, uint32_t height, const string& fourcc) + : OmapFramebuffer(card, width, height, FourCCToPixelFormat(fourcc)) +{ +} + OmapFramebuffer::OmapFramebuffer(OmapCard& card, uint32_t width, uint32_t height, PixelFormat format) : MappedFramebuffer(card, width, height), m_omap_card(card), m_format(format) { -- cgit v1.2.3