# HG changeset patch # User Sam Lantinga # Date 999645680 0 # Node ID 8039a5b760b956c1cc7ceb492b8d87ac3f3a3900 # Parent e92aa316c51728312f1b662a79de713f0eb88ea8 Allow building SDL on Windows without audio support diff -r e92aa316c517 -r 8039a5b760b9 src/video/windib/SDL_dibvideo.c --- a/src/video/windib/SDL_dibvideo.c Tue Sep 04 23:18:45 2001 +0000 +++ b/src/video/windib/SDL_dibvideo.c Tue Sep 04 23:21:20 2001 +0000 @@ -286,7 +286,9 @@ if ( DIB_CreateWindow(this) < 0 ) { return(-1); } +#ifndef DISABLE_AUDIO DX5_SoundFocus(SDL_Window); +#endif /* Determine the screen depth */ vformat->BitsPerPixel = DIB_SussScreenDepth(); diff -r e92aa316c517 -r 8039a5b760b9 src/video/windx5/SDL_dx5video.c --- a/src/video/windx5/SDL_dx5video.c Tue Sep 04 23:18:45 2001 +0000 +++ b/src/video/windx5/SDL_dx5video.c Tue Sep 04 23:21:20 2001 +0000 @@ -876,7 +876,9 @@ if ( DX5_CreateWindow(this) < 0 ) { return(-1); } +#ifndef DISABLE_AUDIO DX5_SoundFocus(SDL_Window); +#endif /* Create the DirectDraw object */ result = DDrawCreate(NULL, &ddraw, NULL);