- fixed compilation with older macOS SDK like 10.9

src/posix/cocoa/i_video.mm:564:23: error: property 'layer' not found on object of type 'id'
This commit is contained in:
alexey.lysiuk 2019-03-23 17:27:47 +02:00
parent 0c6d0de3ab
commit 48a5476ec4

View file

@ -561,7 +561,7 @@ void SystemBaseFrameBuffer::SetMode(const bool fullscreen, const bool hiDPI)
{
assert(m_window.screen != nil);
assert(m_window.contentView.layer != nil);
m_window.contentView.layer.contentsScale = hiDPI ? m_window.screen.backingScaleFactor : 1.0;
[m_window.contentView layer].contentsScale = hiDPI ? m_window.screen.backingScaleFactor : 1.0;
if (fullscreen)
{