residualvm/residualvm — pull request #657 by somaen (2012-10-24 20:58:16+00:00)
Title: TinyGL: Fix ZB_fillTriangleSmooth to support the colour-support patch.

This seems to fix the TinyGL-issues in EMI, I'm not at all sure if this is the right way to do this.

The problem seems to be that this code ZB_fillTriangleSmooth still expects the buffer to be
16-bit, (as changing pp to be unsigned short* instead of PIXEL (which changed to byte* in 158a19df319d1c7aec8013ac308917800b22ea09) also yields good results.

The multiplication by bytesPerPixel is the thing I'm the most unsure about, most of this was written based on reading the above mentioned commit, and guessing.

No thorough testing has been done on Grim for this (does Grim even use fillTriangleSmooth?), as this pull request is mostly made to ask "Is this a decent fix?"

Comments very welcome.