residualvm/residualvm — pull request #812 by chkr-private (2014-01-08 22:51:24+00:00)
Title: EMI/GRIM: Fix unaligned sprites

When an actor which is drawn using sprites moved due to water float
effects and if that actor uses multiple sprites, then these sprites are
not aligned (e.g. in the very first scene, the ship in the background is
not shown as one piece).

That is cause because the sprites are first rotated and then moved to
the correct position. It is necessary to first move them to their
correct position on the actor and then rotate the whole actor.

This changes fixes:
- the ship in the background in the first scene
- the clock hands in the swamp

Comments:
- I'm not very familiar with OpenGL, so this patch needs to be carefully reviewed.
- I could not get it working correctly for tinyGL.