tortuga22 / Tortuga22-NinePatch

Tortuga22's NinePatch Library
http://www.tortuga22.com/
Other
114 stars 27 forks source link

Scaling issues #1

Open andyland opened 13 years ago

andyland commented 13 years ago

This commit fixed some issues w/ scaling for @2x. The most important part was that by using NSRange, all half values from measuring the # of black pixels was getting truncated by integer round-off. I created a new struct TURange to use floats. Also, the library is now accounting for scaling when using drawRect: to generate a new image.