diff options
author | Igor Khmurets <subzero@mapswithme.com> | 2014-01-11 15:55:57 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:10:10 +0300 |
commit | a4b54f1f354e589ddc1889d6aa4e80e2cf980f1a (patch) | |
tree | ba81cb36651660d6ebec03fccf44d9ad79a27e15 /iphone/Maps/Classes/EAGLView.mm | |
parent | fedf07299ef4208236c15c3c3c836d2a4d36f3dc (diff) |
[ios] Project now supports ARC
Diffstat (limited to 'iphone/Maps/Classes/EAGLView.mm')
-rw-r--r-- | iphone/Maps/Classes/EAGLView.mm | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/iphone/Maps/Classes/EAGLView.mm b/iphone/Maps/Classes/EAGLView.mm index 0cef454a4b..2d0ae5a298 100644 --- a/iphone/Maps/Classes/EAGLView.mm +++ b/iphone/Maps/Classes/EAGLView.mm @@ -29,7 +29,7 @@ } // The GL view is stored in the nib file. When it's unarchived it's sent -initWithCoder: -- (id)initWithCoder:(NSCoder*)coder +- (id)initWithCoder:(NSCoder *)coder { NSLog(@"EAGLView initWithCoder Started"); @@ -45,7 +45,6 @@ if (!renderContext.get()) { NSLog(@"EAGLView initWithCoder Error"); - [self release]; return nil; } @@ -53,14 +52,9 @@ // ColorFormat : RGB565 // Backbuffer : YES, (to prevent from loosing content when mixing with ordinary layers). - eaglLayer.drawableProperties = [NSDictionary dictionaryWithObjectsAndKeys: - [NSNumber numberWithBool:NO], - kEAGLDrawablePropertyRetainedBacking, - kEAGLColorFormatRGB565, - kEAGLDrawablePropertyColorFormat, - nil]; + eaglLayer.drawableProperties = @{kEAGLDrawablePropertyRetainedBacking : @NO, kEAGLDrawablePropertyColorFormat : kEAGLColorFormatRGB565}; // Correct retina display support in opengl renderbuffer - self.contentScaleFactor = [[UIScreen mainScreen] scale]; + self.contentScaleFactor = [UIScreen mainScreen].scale; } NSLog(@"EAGLView initWithCoder Ended"); @@ -180,7 +174,6 @@ { delete videoTimer; [EAGLContext setCurrentContext:nil]; - [super dealloc]; } - (CGPoint)viewPoint2GlobalPoint:(CGPoint)pt |