Source/Grid.m
changeset 28 06160a812d43
parent 27 b0affce7beb1
     1.1 --- a/Source/Grid.m	Tue Mar 10 22:36:23 2009 -0700
     1.2 +++ b/Source/Grid.m	Tue Jul 07 08:44:33 2009 -0700
     1.3 @@ -387,9 +387,11 @@
     1.4      // To make the bitTransform relative to my center, I need to offset the center to the origin
     1.5      // first, and then back afterwards.
     1.6      CGSize size = self.bounds.size;
     1.7 -    CATransform3D x = CATransform3DMakeTranslation(-size.width/2, -size.height/2,0);
     1.8 +    size.width = roundf(size.width/2.0);
     1.9 +    size.height = roundf(size.height/2.0);
    1.10 +    CATransform3D x = CATransform3DMakeTranslation(-size.width, -size.height, 0);
    1.11      x = CATransform3DConcat(x, bitTransform);
    1.12 -    x = CATransform3DConcat(x, CATransform3DMakeTranslation(size.width/2, size.height/2,0));
    1.13 +    x = CATransform3DConcat(x, CATransform3DMakeTranslation(size.width, size.height ,0));
    1.14      self.sublayerTransform = x;    
    1.15  }
    1.16