Skip to content

Commit

Permalink
Merge pull request #1246 from taysta/ojk-macos
Browse files Browse the repository at this point in the history
macOS libpng, SDL_window fixes
  • Loading branch information
SomaZ authored Nov 12, 2024
2 parents cb52f9f + 8a6429c commit 199ddc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit 199ddc7

Please sign in to comment.