src/SDL.c
changeset 1909 8f1ab2f7c722
parent 1895 c121d94672cb
child 2472 3f73c88c9abb
child 2674 f1d07ba2e275
child 2713 0906692aa6a4
--- a/src/SDL.c	Sat Jul 15 19:29:42 2006 +0000
+++ b/src/SDL.c	Sat Jul 15 19:30:18 2006 +0000
@@ -62,8 +62,7 @@
 #if !SDL_VIDEO_DISABLED
     /* Initialize the video/event subsystem */
     if ((flags & SDL_INIT_VIDEO) && !(SDL_initialized & SDL_INIT_VIDEO)) {
-        if (SDL_VideoInit(SDL_getenv("SDL_VIDEODRIVER"),
-                          (flags & SDL_INIT_EVENTTHREAD)) < 0) {
+        if (SDL_VideoInit(NULL, (flags & SDL_INIT_EVENTTHREAD)) < 0) {
             return (-1);
         }
         SDL_initialized |= SDL_INIT_VIDEO;
@@ -78,7 +77,7 @@
 #if !SDL_AUDIO_DISABLED
     /* Initialize the audio subsystem */
     if ((flags & SDL_INIT_AUDIO) && !(SDL_initialized & SDL_INIT_AUDIO)) {
-        if (SDL_AudioInit(SDL_getenv("SDL_AUDIODRIVER")) < 0) {
+        if (SDL_AudioInit(NULL) < 0) {
             return (-1);
         }
         SDL_initialized |= SDL_INIT_AUDIO;