Mercurial > sdl-ios-xcode
comparison src/video/windib/SDL_dibvideo.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 | 29a638dc26db |
children | e8157fcb3114 |
comparison
equal
deleted
inserted
replaced
168:e92aa316c517 | 169:8039a5b760b9 |
---|---|
284 | 284 |
285 /* Create the window */ | 285 /* Create the window */ |
286 if ( DIB_CreateWindow(this) < 0 ) { | 286 if ( DIB_CreateWindow(this) < 0 ) { |
287 return(-1); | 287 return(-1); |
288 } | 288 } |
289 #ifndef DISABLE_AUDIO | |
289 DX5_SoundFocus(SDL_Window); | 290 DX5_SoundFocus(SDL_Window); |
291 #endif | |
290 | 292 |
291 /* Determine the screen depth */ | 293 /* Determine the screen depth */ |
292 vformat->BitsPerPixel = DIB_SussScreenDepth(); | 294 vformat->BitsPerPixel = DIB_SussScreenDepth(); |
293 switch (vformat->BitsPerPixel) { | 295 switch (vformat->BitsPerPixel) { |
294 case 15: | 296 case 15: |