Fix crash when logging surfaceRect
This commit is contained in:
1 parent
44b3fe879a
commit
ce3cc585cf
1 file changed
+1
-1
@@ -84,7 +84,7 @@ float resolutionScale;
|
||||
savedHeight = roundf(height * screenScale);
|
||||
|
||||
CGRect surfaceRect = CGRectMake((width - width * resolutionScale) / 2, (height - height * resolutionScale) / 2, width * resolutionScale, height * resolutionScale);
|
||||
NSLog(@"Debug: surfaceRect=%@", surfaceRect);
|
||||
NSLog(@"Debug: surfaceRect=%@", NSStringFromCGRect(surfaceRect));
|
||||
self.surfaceView = [[MGLKView alloc] initWithFrame:surfaceRect];
|
||||
NSLog(@"Debug: surfaceView=%@", self.surfaceView);
|
||||
[self.view addSubview:self.surfaceView];
|
||||
|
||||
Reference in new issue
Block a user