- fixed compilation of debug target with older macOS SDKs

src/posix/cocoa/i_video.mm:633:31: error: property 'layer' not found on object of type 'id'
This commit is contained in:
alexey.lysiuk 2020-01-06 14:26:16 +02:00
parent eeddd72458
commit fca492df2b

View file

@ -630,7 +630,7 @@ void SystemBaseFrameBuffer::SetMode(const bool fullscreen, const bool hiDPI)
else else
{ {
assert(m_window.screen != nil); assert(m_window.screen != nil);
assert(m_window.contentView.layer != 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;
} }