From 78e5ce40a5c0fa1631088d02d91fde580b64fe5d Mon Sep 17 00:00:00 2001 From: Brian Osborn Date: Thu, 4 Apr 2019 07:05:35 -0600 Subject: [PATCH] fixing code warnings --- geopackage-ios/geom/map/GPKGPolygonOptions.h | 2 +- geopackage-ios/tiles/features/GPKGFeatureTileContext.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/geopackage-ios/geom/map/GPKGPolygonOptions.h b/geopackage-ios/geom/map/GPKGPolygonOptions.h index e583424d..dafac99f 100644 --- a/geopackage-ios/geom/map/GPKGPolygonOptions.h +++ b/geopackage-ios/geom/map/GPKGPolygonOptions.h @@ -16,7 +16,7 @@ /** * The fill color to use for the path */ -@property (strong, nullable) UIColor *fillColor; +@property (nonatomic, strong) UIColor *fillColor; /** * The stroke color to use for the path diff --git a/geopackage-ios/tiles/features/GPKGFeatureTileContext.m b/geopackage-ios/tiles/features/GPKGFeatureTileContext.m index 3fad4a81..913f5842 100644 --- a/geopackage-ios/tiles/features/GPKGFeatureTileContext.m +++ b/geopackage-ios/tiles/features/GPKGFeatureTileContext.m @@ -151,7 +151,7 @@ -(CGContextRef) contextForLayer: (int) layer{ if(contextObject != nil){ context = (__bridge CGContextRef) contextObject; }else{ - CGColorSpaceRef colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB); + CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); context = CGBitmapContextCreate(NULL, self.tileWidth, self.tileHeight, 8, 0, colorSpace, kCGImageAlphaPremultipliedLast); CGColorSpaceRelease(colorSpace);