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

macOS libpng, SDL_window fixes #1246

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ endif()

if(APPLE)
set(UseInternalJPEGDefault ON)
set(UseInternalPNGDefault ON)
endif()

option(UseInternalOpenAL "If set, use bundled OpenAL." ${UseInternalOpenALDefault})
Expand Down
6 changes: 5 additions & 1 deletion shared/sdl/sdl_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,11 @@ static rserr_t GLimp_SetMode(glconfig_t *glConfig, const windowDesc_t *windowDes

if( fullscreen )
{
flags |= SDL_WINDOW_FULLSCREEN;
#ifdef MACOS_X
flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
#else
flags |= SDL_WINDOW_FULLSCREEN;
#endif
glConfig->isFullscreen = qtrue;
}
else
Expand Down
Loading