index 0defd3a19932e8d0d6d240dd4290e1e8240997c2..abea762955744a06905f235a0202828f779841dd 100644 (file)
{
DumbFramebuffer::DumbFramebuffer(Card &card, uint32_t width, uint32_t height, const string& fourcc)
- :Framebuffer(card, width, height)
+ :DumbFramebuffer(card, width, height, FourCCToPixelFormat(fourcc))
{
- uint32_t a, b, c, d;
- a = fourcc[0];
- b = fourcc[1];
- c = fourcc[2];
- d = fourcc[3];
-
- uint32_t code = ((uint32_t)(a) | ((uint32_t)(b) << 8) | ((uint32_t)(c) << 16) | ((uint32_t)(d) << 24));
+}
- Create(width, height, code);
+DumbFramebuffer::DumbFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format)
+ :Framebuffer(card, width, height)
+{
+ Create(width, height, (uint32_t)format);
}
DumbFramebuffer::~DumbFramebuffer()