Merge pull request #1713 from attilaz/nsview

warnings cleanup for NSView as nwh commit
This commit is contained in:
Бранимир Караџић 2019-03-27 22:46:16 +00:00 committed by GitHub
commit de35a369ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -192,7 +192,7 @@ namespace bgfx { namespace gl
uint64_t caps = 0;
#if defined(MAC_OS_X_VERSION_MAX_ALLOWED) && (MAC_OS_X_VERSION_MAX_ALLOWED >= 1070)
NSObject* nwh = (NSObject*)g_platformData.nwh;
if ([nwh respondsToSelector:@selector(backingScaleFactor)] && (1.0f < [nwh backingScaleFactor]))
if ([nwh respondsToSelector:@selector(backingScaleFactor)] && (1.0f < [(id)nwh backingScaleFactor]))
caps |= BGFX_CAPS_HIDPI;
#endif // defined(MAC_OS_X_VERSION_MAX_ALLOWED) && (MAC_OS_X_VERSION_MAX_ALLOWED >= 1070)
return caps;

View File

@ -3008,7 +3008,6 @@ namespace bgfx { namespace mtl
return;
}
NSWindow* nsWindow = (NSWindow*)_nwh;
CALayer* layer = contentView.layer;
if(NULL != layer && [layer isKindOfClass:NSClassFromString(@"CAMetalLayer")])
{