Allow building SDL on Windows without audio support
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40170
This commit is contained in:
parent
23d3cf9854
commit
fce24d4fb3
2 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue