diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index 3cf8d37e2c..57d2f3bdbf 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -557,6 +557,10 @@ void SystemBaseFrameBuffer::SetWindowedMode() 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; + if (fullscreen) { SetFullscreenMode();