cocos2d/cocos2d-html5 — pull request #747 by timmjd (2013-01-23 19:44:09+00:00)
Title: Fix for CCSprite test (but not 100% compatible)

Hi,

This fix should fix the web version but:
We don't know if we have implemented this correctly because we get different behaviors on iOS and web.

"capInsets" sound like this is the size of the center box and not the full box. Is this correct?

I needed to change the offset inside the CCSprite draw function because it always take the offset as 0/0 and not the origin. I needed to add this to work for a sprite map which do come from rotated content.
- Sprite map >> rotate >> draw rotated to canvas >> scissor a frame with an offset >> draw scissored frame to final canvas

Problem with this drawImage offset usage is that this collides with the setColor functionality that was implemented some weeks ago.