DirectFB - Home of the pragmatist Roadmap

[directfb-dev] Re: Help me please! About 4bits pixel format.
Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[directfb-dev] Re: Help me please! About 4bits pixel format.

On Fri, Dec 13, 2002 at 03:55:57PM +0800, James Su wrote:
> In my understanding, a surface
> may occupy a block of memory itself or share a block of memory with
> other surface, ie. a sub surface.

Well the only difference between "real" surfaces and sub surfaces is the
way you create them. After that it's just business as usual.

> Am I right? Then, for example if I
> alloc a sub surface from an odd x coordination within the father
> surface, i.e. (3,4), the memory offset of the sub surface will be 1.5
> bytes, but it's impossible!

Perhaps you can simply return DFB_INVAREA in those cases.

Ville Syrjälä

Info:  To unsubscribe send a mail to with 
"unsubscribe directfb-dev" as subject.

Home | Main Index | Thread Index / Development / Old Archives