makotok/Hanappe — pull request #41 by superquadratic (2013-03-13 09:36:17+00:00)
Title: [Flower] Fix size of trimmed SheetImage sprites

When sprites are trimmed using TexturePacker, they are still supposed to have their original size when loaded in Moai. This can be done by setting a `MOAIBoundsDeck` for the SheetImage's deck, using the bounds defined as `spriteSourceSize` in the texture atlas. The `MOAIBoundsDeck` must be used as soon as one sprite in the atlas is trimmed.

Please note that this changes the output of the SheetImage sample: The sprites "one" and "two" are trimmed and now appear at their original size again. If you want the sprites to appear with the smaller, trimmed bounds in Moai, you can set the "Trim mode" in TexturePacker to "Crop, flush Position".

This is a follow-up to 85422d3f14c599025447c69eab57bbd19432ba9e that provided initial support for TexturePacker trimming.