diff --git a/src/video/windib/SDL_dibvideo.c b/src/video/windib/SDL_dibvideo.c index 10dccf61..cec7bf30 100644 --- a/src/video/windib/SDL_dibvideo.c +++ b/src/video/windib/SDL_dibvideo.c @@ -286,7 +286,9 @@ int DIB_VideoInit(_THIS, SDL_PixelFormat *vformat) if ( DIB_CreateWindow(this) < 0 ) { return(-1); } +#ifndef DISABLE_AUDIO DX5_SoundFocus(SDL_Window); +#endif /* Determine the screen depth */ vformat->BitsPerPixel = DIB_SussScreenDepth(); diff --git a/src/video/windx5/SDL_dx5video.c b/src/video/windx5/SDL_dx5video.c index 87a6f3ba..d96d1e7d 100644 --- a/src/video/windx5/SDL_dx5video.c +++ b/src/video/windx5/SDL_dx5video.c @@ -876,7 +876,9 @@ int DX5_VideoInit(_THIS, SDL_PixelFormat *vformat) if ( DX5_CreateWindow(this) < 0 ) { return(-1); } +#ifndef DISABLE_AUDIO DX5_SoundFocus(SDL_Window); +#endif /* Create the DirectDraw object */ result = DDrawCreate(NULL, &ddraw, NULL);