|
Roadmap |
Site sponsored by
IGEL
|
||
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [directfb-users] Re: cle266 layer and pixel format problem
Quoting Selwyn Tang: > Hi all, > > I am developing a dfb application on a epia-m board, with cle266 kernel > fb driver (viafb) and directfb support (cle266vgaio). dfbinfo shows two > layers, one is the fbdev primary layer and the other cle266. > > The problem is, if I CreateSurface from the super interface, it uses the > primary layer, but without flipping. And I cannot successfully, say, > FillRectangle on that surface. On the other hand, if I GetDisplayLayer > for layer id 1, which is the cle266 and supports flipping, and > GetSurface from this layer, I can FillRectangle on it with flipping, > but, however, cannot RenderTo a jpeg to the surface due to the unknown > pixel format 201007. This pixel format problem does not occur in the > first scenario since when I CreateSurface, I can use desc to ask for a > valid pixel format, like ARGB. You can request a flipping primary surface by setting the capabilities: desc.flags |= DSDESC_CAPS; desc.caps = DSCAPS_FLIPPING; -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" Convergence GmbH -- Info: To unsubscribe send a mail to ecartis@directfb.org with "unsubscribe directfb-users" as subject.
|
|
| directfb.org |
|
Development |
|
Old Archives |