residualvm/residualvm — pull request #702 by Akz- (2013-01-02 00:03:54+00:00)
Title: GRIM: Fix regression in sprite drawing

The commit 92213b0 which was apparently meant to fix EMI-specific issues with sprites, also changed behavior in Grim.

The old code constructed the sprite polygon so that the center of the bottom edge was at the sprite's origin, and the texture was flipped along the X-axis. With the current code the sprite is centered on the origin and the texture is no longer flipped on the X-axis.

The old way may seem wrong, but it is in fact the same behavior as in the original game. Because of the change, sprites now appear somewhat lower than in the original Grim and the textures are flipped when compared to the original.

This request restores the old behavior which is correct in Grim, but EMI will keep the current behavior. I'm assuming here that the current behavior (center sprite on origin, do not flip the texture) is desired in EMI, but I don't have a working copy of EMI so I can't test to see.