Permalink
Browse files

- ColoredCircleSprite does not compensate for content scale factor wh…

…en compiled for a mac app
  • Loading branch information...
derekvanvliet committed May 31, 2011
1 parent 2783996 commit 234fefe7313f4e92a9a8e51dbff83ab818ec1c9f
Showing with 5 additions and 0 deletions.
  1. +5 −0 Classes/ColoredCircleSprite.m
@@ -73,8 +73,13 @@ -(void) setRadius: (float) size
for(int i=0; i<numberOfSegments; i++)
{
+#ifdef __IPHONE_OS_VERSION_MAX_ALLOWED
float j = radius_ * [[CCDirector sharedDirector] contentScaleFactor] * cosf(theta) + position_.x;
float k = radius_ * [[CCDirector sharedDirector] contentScaleFactor] * sinf(theta) + position_.y;
+#elif defined(__MAC_OS_X_VERSION_MAX_ALLOWED)
+ float j = radius_ * cosf(theta) + position_.x;
+ float k = radius_ * sinf(theta) + position_.y;
+#endif
circleVertices_[i*2] = j;
circleVertices_[i*2+1] = k;

0 comments on commit 234fefe

Please sign in to comment.