[Scummvm-devel] ATTN PORTERS: OSystem::grabPalette requirement change

Johannes Schickel lordhoto at scummvm.org
Mon Dec 20 18:32:12 CET 2010


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




More information about the Scummvm-devel mailing list