From 6df90d82be079ef22e0c63a01983acf29d628b39 Mon Sep 17 00:00:00 2001 From: Lorenzooone Date: Thu, 28 Nov 2024 18:23:51 +0100 Subject: [PATCH] Add Desktop mode to valid MacOS modes --- src/SFML/Window/OSX/VideoModeImpl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SFML/Window/OSX/VideoModeImpl.cpp b/src/SFML/Window/OSX/VideoModeImpl.cpp index 581aba592..af0bb50b4 100644 --- a/src/SFML/Window/OSX/VideoModeImpl.cpp +++ b/src/SFML/Window/OSX/VideoModeImpl.cpp @@ -51,6 +51,7 @@ std::vector VideoModeImpl::getFullscreenModes() } VideoMode desktop = getDesktopMode(); + modes.push_back(desktop); // Loop on each mode and convert it into a sf::VideoMode object. const CFIndex modesCount = CFArrayGetCount(cgmodes);