[Scummvm-devel] Bitdepth/pixel format API concerns

Johannes Schickel lordhoto at gmail.com
Sat Jun 13 15:42:20 CEST 2009


J Northup wrote:
>
>
> On Sat, Jun 13, 2009 at 3:12 AM, Marcus Comstedt <marcus at mc.pp.se 
> <mailto:marcus at mc.pp.se>> wrote:
>
>
>     J Northup <upthorn at gmail.com <mailto:upthorn at gmail.com>> writes:
>
>     > bool isABGR(void): true if the backend uses ABGR color order,
>     false if
>     > backend uses RGBA.
>
>     And if the color order is ARGB?  I don't quite understand the need for
>     this method, as you can already query the PixelFormat, which contains
>     both ordering and number of bits.  Just knowing "ABGR or not ABGR"
>     does not give enough information anyway.
>
> I have been told by _sev that RGBA and ABGR are the only orders 
> supported by any backend. Is this incorrect?

Yes it's incorrect, there are backends using ARGB. The dreamcast uses 
ARGB4444 for it's overlay currently for example.

// Johannes




More information about the Scummvm-devel mailing list