Mercurial > sdl-ios-xcode
comparison src/video/windx5/SDL_dx5video.c @ 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 | cf2af46e9e2a |
children | e8157fcb3114 |
comparison
equal
deleted
inserted
replaced
168:e92aa316c517 | 169:8039a5b760b9 |
---|---|
874 | 874 |
875 /* Create the window */ | 875 /* Create the window */ |
876 if ( DX5_CreateWindow(this) < 0 ) { | 876 if ( DX5_CreateWindow(this) < 0 ) { |
877 return(-1); | 877 return(-1); |
878 } | 878 } |
879 #ifndef DISABLE_AUDIO | |
879 DX5_SoundFocus(SDL_Window); | 880 DX5_SoundFocus(SDL_Window); |
881 #endif | |
880 | 882 |
881 /* Create the DirectDraw object */ | 883 /* Create the DirectDraw object */ |
882 result = DDrawCreate(NULL, &ddraw, NULL); | 884 result = DDrawCreate(NULL, &ddraw, NULL); |
883 if ( result != DD_OK ) { | 885 if ( result != DD_OK ) { |
884 SetDDerror("DirectDrawCreate", result); | 886 SetDDerror("DirectDrawCreate", result); |