diff options
-rw-r--r-- | kms++/inc/kms++/extframebuffer.h | 1 | ||||
-rw-r--r-- | kms++/src/extframebuffer.cpp | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/kms++/inc/kms++/extframebuffer.h b/kms++/inc/kms++/extframebuffer.h index eab7e3c..227a576 100644 --- a/kms++/inc/kms++/extframebuffer.h +++ b/kms++/inc/kms++/extframebuffer.h @@ -9,7 +9,6 @@ namespace kms class ExtFramebuffer : public Framebuffer { public: - ExtFramebuffer(Card& card, uint32_t width, uint32_t height, uint8_t depth, uint8_t bpp, uint32_t stride, uint32_t handle); ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, uint32_t handles[4], uint32_t pitches[4], uint32_t offsets[4]); ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, diff --git a/kms++/src/extframebuffer.cpp b/kms++/src/extframebuffer.cpp index 0ade454..1af2f62 100644 --- a/kms++/src/extframebuffer.cpp +++ b/kms++/src/extframebuffer.cpp @@ -12,17 +12,6 @@ using namespace std; namespace kms { -ExtFramebuffer::ExtFramebuffer(Card& card, uint32_t width, uint32_t height, uint8_t depth, uint8_t bpp, uint32_t stride, uint32_t handle) - :Framebuffer(card, width, height) -{ - uint32_t id; - int r = drmModeAddFB(card.fd(), width, height, depth, bpp, stride, handle, &id); - if (r) - throw invalid_argument("fob"); - - set_id(id); -} - ExtFramebuffer::ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, uint32_t handles[], uint32_t pitches[], uint32_t offsets[]) : Framebuffer(card, width, height) |