Snowy Monkey

Building a software synth

Weird OpengGL Screen Rotation Bug February 17, 2010

Filed under: iphone,screenshot,synth — snowy monkey @ 8:15 pm
Tags: , ,

I’m trying to make the synth behave nicely on the iphone by having it auto rotate when the screen rotates. The code I have works very well in the simulator, but shows screen corruption after the rotation. If you then rotate back, it displays well again. So it seems my resize code maybe isn’t up to snuff.

According to this post on Red Glasses (this link’s down now, apparently it was a draft version up for a select few to read, but google got there early), it may be related to CALayer/UIView resizing. Looking at the behaviour, this seems likely.

Anyway, here’s the before & after. Any suggestions?

img2img1

Advertisement
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.