changeset 169:8039a5b760b9

Allow building SDL on Windows without audio support
author Sam Lantinga <slouken@libsdl.org>
date Tue, 04 Sep 2001 23:21:20 +0000
parents e92aa316c517
children 9427fb48592a
files src/video/windib/SDL_dibvideo.c src/video/windx5/SDL_dx5video.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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();
--- 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);