Posted By

bebroll on 07/18/10


Tagged

iphone cocos2d highres


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


Init cocos2d's contentScale


 / Published in: Objective C
 

  1. // Obtain the shared director in order to...
  2. CCDirector *director = [CCDirector sharedDirector];
  3.  
  4. // Enables High Res mode
  5. if ([UIScreen instancesRespondToSelector:@selector(scale)]) {
  6. [director setContentScaleFactor:[[UIScreen mainScreen] scale]];
  7. }

Report this snippet  

You need to login to post a comment.