diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index 682b2239c..46d7a3a48 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -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) {