Fix crash when logging surfaceRect

This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2021-08-22 09:27:03 +07:00
1 parent 44b3fe879a
commit ce3cc585cf
1 file changed
+1 -1
+1 -1
View File
@@ -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];