Fixed whitespace stripped regions.

This commit is contained in:
NathanSweet 2013-09-28 01:19:44 +02:00
parent 59db3c834b
commit c65830aa85

View File

@ -75,10 +75,10 @@ public class RegionAttachment extends Attachment {
if (region instanceof AtlasRegion) {
AtlasRegion region = (AtlasRegion)this.region;
if (region.rotate) {
localX += region.offsetX / region.originalWidth * height;
localY += region.offsetY / region.originalHeight * width;
localX2 -= (region.originalWidth - region.offsetX - region.packedHeight) / region.originalWidth * height;
localY2 -= (region.originalHeight - region.offsetY - region.packedWidth) / region.originalHeight * width;
localX += region.offsetX / region.originalWidth * width;
localY += region.offsetY / region.originalHeight * height;
localX2 -= (region.originalWidth - region.offsetX - region.packedHeight) / region.originalWidth * width;
localY2 -= (region.originalHeight - region.offsetY - region.packedWidth) / region.originalHeight * height;
} else {
localX += region.offsetX / region.originalWidth * width;
localY += region.offsetY / region.originalHeight * height;