Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- ColoredCircleSprite does not compensate for content scale factor wh…

…en compiled for a mac app
  • Loading branch information...
commit 234fefe7313f4e92a9a8e51dbff83ab818ec1c9f 1 parent 2783996
Derek van Vliet authored May 31, 2011

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  Classes/ColoredCircleSprite.m
5  Classes/ColoredCircleSprite.m
@@ -73,8 +73,13 @@ -(void) setRadius: (float) size
73 73
 	
74 74
 	for(int i=0; i<numberOfSegments; i++)
75 75
 	{
  76
+#ifdef __IPHONE_OS_VERSION_MAX_ALLOWED
76 77
 		float j = radius_ * [[CCDirector sharedDirector] contentScaleFactor] * cosf(theta) + position_.x;
77 78
 		float k = radius_ * [[CCDirector sharedDirector] contentScaleFactor] * sinf(theta) + position_.y;
  79
+#elif defined(__MAC_OS_X_VERSION_MAX_ALLOWED)
  80
+		float j = radius_ * cosf(theta) + position_.x;
  81
+		float k = radius_ * sinf(theta) + position_.y;
  82
+#endif				
78 83
 		
79 84
 		circleVertices_[i*2]	= j;
80 85
 		circleVertices_[i*2+1]	= k;

0 notes on commit 234fefe

Please sign in to comment.
Something went wrong with that request. Please try again.