Allow building SDL on Windows without audio support

This commit is contained in:
Sam Lantinga 2001-09-04 23:21:20 +00:00
parent 3e1a97bb62
commit 10c9f2909e
2 changed files with 4 additions and 0 deletions

View File

@ -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();

View File

@ -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);