But I need some help on the gfx engine, and mainly on the thing with the ctab's / color tables. What are they exactly used for.
Because I don't know, I cannot replace them with a 32bpp variant, and have to to something like:
dst = i2p(ctab[p2i(dst)])
where
* dst is the 32bpp screen pixel (PIXEL32)
* i2p converts INDEXEDCOLOR to PIXEL32
* p2i converts PIXEL32 to INDEXEDCOLOR (using the initial palette)
This last function is either slow (too slow) or uses 16 mb of memory and is not very accurate, so I want to replace the ctab functionality with a function, basically. I suppose so far it has something to do with shadows, but I can't really get the real meaning and of all uses. (smth about 3 blit modes?)
If anyone who has useful info on this, let me know.
Thread about the patch: Here
