Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ship-side part of the Mac fullscreen fix #5060

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
5 changes: 5 additions & 0 deletions soh/soh/SohGui/SohMenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,13 @@ void DrawSettingsMenu() {
UIWidgets::Tooltip("Activate vertical sync, to prevent screen tearing.");
}

#ifdef __APPLE__
if (Ship::Context::GetInstance()->GetWindow()->SupportsWindowedFullscreen() && !Ship::Context::GetInstance()->GetWindow()->IsFullscreen()) {
UIWidgets::PaddedEnhancementCheckbox("Exclusive fullscreen", CVAR_SDL_WINDOWED_FULLSCREEN, true, false);
#else
if (Ship::Context::GetInstance()->GetWindow()->SupportsWindowedFullscreen()) {
UIWidgets::PaddedEnhancementCheckbox("Windowed fullscreen", CVAR_SDL_WINDOWED_FULLSCREEN, true, false);
#endif
}

if (Ship::Context::GetInstance()->GetWindow()->GetGui()->SupportsViewports()) {
Expand Down