[Scummvm-devel] ATTN PORTERS: OSystem::grabPalette requirement change
yotam barnoy
yotambarnoy at gmail.com
Mon Dec 20 19:15:25 CET 2010
Just to double check, normally for an 8 bit image (ie. with a palette)
the backend's initSize() will be called with a NULL for the
pixelFormat, right? So I just need to make NULL correspond to a 32 bit
palette. Correct?
Yotam
On Mon, Dec 20, 2010 at 7:32 PM, Johannes Schickel <lordhoto at scummvm.org> wrote:
> Hi,
>
> as you might have seen I committed a slight change to the
> OSystem::grabPalette documentation today (r54978). This was done after
> talking with Max about it.
>
> We changed the requirements to grabPalette so that exactly the same RGB
> data should be returned there as was previously setup via setPalette.
> This means regardless of the graphics real output format of the backend,
> the exact same values should be returned by grabPalette to keep a
> symmetry between setPalette and grabPalette like copyRectToScreen and
> lockScreen has.
>
> According to this bug report:
> http://sourceforge.net/tracker/?func=detail&aid=2999153&group_id=37116&atid=418820
> the following backends are affected by this: dc, ds, n64, ps2, wii and
> psp. If you are the porter of one of these backends please try to change
> your grabPalette implementation to conform to the new specs. Also if
> your port does not implement grabPalette please implement it too.
>
> // Johannes
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> Scummvm-devel mailing list
> Scummvm-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scummvm-devel
>
More information about the Scummvm-devel
mailing list