Skip to content

Commit

Permalink
Allow building SDL on Windows without audio support
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 4, 2001
1 parent c80db4d commit 7a77812
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/windib/SDL_dibvideo.c
Expand Up @@ -286,7 +286,9 @@ int DIB_VideoInit(_THIS, SDL_PixelFormat *vformat)
if ( DIB_CreateWindow(this) < 0 ) { if ( DIB_CreateWindow(this) < 0 ) {
return(-1); return(-1);
} }
#ifndef DISABLE_AUDIO
DX5_SoundFocus(SDL_Window); DX5_SoundFocus(SDL_Window);
#endif


/* Determine the screen depth */ /* Determine the screen depth */
vformat->BitsPerPixel = DIB_SussScreenDepth(); vformat->BitsPerPixel = DIB_SussScreenDepth();
Expand Down
2 changes: 2 additions & 0 deletions src/video/windx5/SDL_dx5video.c
Expand Up @@ -876,7 +876,9 @@ int DX5_VideoInit(_THIS, SDL_PixelFormat *vformat)
if ( DX5_CreateWindow(this) < 0 ) { if ( DX5_CreateWindow(this) < 0 ) {
return(-1); return(-1);
} }
#ifndef DISABLE_AUDIO
DX5_SoundFocus(SDL_Window); DX5_SoundFocus(SDL_Window);
#endif


/* Create the DirectDraw object */ /* Create the DirectDraw object */
result = DDrawCreate(NULL, &ddraw, NULL); result = DDrawCreate(NULL, &ddraw, NULL);
Expand Down

0 comments on commit 7a77812

Please sign in to comment.