cocos2d/cocos2d-x — pull request #1974 by folecr (2013-02-11 21:31:37+00:00)
Title: CCScale9Sprite : Simpler, correct handling of spritesheet sources

* bounds of insets are calculated relative to sprite
* transformations are then applied to get the texture coordinates
* handle sprites stored rotated in a spritesheet correctly