I’m currently using the superb Flow Cover by William Woody for a prototype I’m working on for a client, but it’s a little out of date now (he’s a super busy guy). After a little bit of study (I’m not an openGLES guy!) I discovered a really easy fix.

All you need to do is detect the retina display, then set the contentScaleFactor for the FlowCoverView to 2. Simply edit the internalInit method to look like this:

- (id)internalInit
{
	//
	// FIX FOR RETINA DISPLAY
	//
	if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)] && [[UIScreen mainScreen] scale] == 2){
		self.contentScaleFactor = 2;
	}
	// END FIX FOR RETINA DISPLAY

	CAEAGLLayer *eaglLayer;

	eaglLayer = (CAEAGLLayer *)self.layer;
	eaglLayer.opaque = YES;

	context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES1];
	if (!context || ![EAGLContext setCurrentContext:context] || ![self createFrameBuffer]) {
		[self release];
		return nil;
	}
	self.backgroundColor = [UIColor colorWithWhite:0 alpha:0];

	cache = [[DataCache alloc] initWithCapacity:MAXTILES];
	offset = 0;

	return self;
}

I hope this is useful to someone, as I couldn’t find anything on Google about this yet.


This post is tagged ,

3 Responses

  1. Eugenio Baglieri says:

    Hi, thank you, is what i wal looking for!
    It could be awesome if you know how to adapt it also for the ipad screen

    • admin says:

      Hi, do you mean make the images bigger? I’m trying that at the moment actually. I’ll report back if I make any progress.

  2. LoDani says:

    Marvelous. I was being crazy with this one. Thanks!

Leave a Reply





Hi, I’m Mark.

I live in Shibuya, Tokyo. I make things that are fun to touch. Mostly for the iPhone and iPad.

 

I'm also CTO of Vinetrade, an exciting new venture. It's a fine wine trading platform (think stock exchange for investing in expensive wines).

 

Feel free to take a look around my app and freelance portfolio. If you like what you see and you're looking for a developer, give me a shout!

 

Email: markymcf@gmail.com

Twitter: @marky_mc

Comments on my work


"When I am not home it is a great app for checking up on Kanji I am not to familiar with. I recommend this app." - **** - Quick Kanji Dictionary, UK App Store review

 

"Easy app to figure out and use ... for it's purpose, it's a very good app to have!" - ***** - Quick Kanji Dictionary, US App Store review

 

"Très bon dictionnaire de kanjis, simple d'utilisation (par les sous-kanjis) et très complet." - **** - Quick Kanji Dictionary, French App Store review

 


"Very useful" - ***** - Quick Kanji Dictionary HD, US App Store review

 


"Very fun to play with friends, the graphics are stunning and colors are great." - ***** - Facemakr, US App Store Review

 


"It is like having a little "Purikura" machine (Japanese sticker photo booth) in your pocket!
All of the illustrations are awesome too!" - ***** - Monstermakr, US App Store Review

Categories