src/SDL.c
changeset 1336 3692456e7b0f
parent 1330 450721ad5436
child 1338 604d73db6802
     1.1 --- a/src/SDL.c	Mon Feb 06 17:28:04 2006 +0000
     1.2 +++ b/src/SDL.c	Tue Feb 07 06:59:48 2006 +0000
     1.3 @@ -66,7 +66,7 @@
     1.4  #ifndef DISABLE_VIDEO
     1.5  	/* Initialize the video/event subsystem */
     1.6  	if ( (flags & SDL_INIT_VIDEO) && !(SDL_initialized & SDL_INIT_VIDEO) ) {
     1.7 -		if ( SDL_VideoInit(getenv("SDL_VIDEODRIVER"),
     1.8 +		if ( SDL_VideoInit(SDL_getenv("SDL_VIDEODRIVER"),
     1.9  		                   (flags&SDL_INIT_EVENTTHREAD)) < 0 ) {
    1.10  			return(-1);
    1.11  		}
    1.12 @@ -82,7 +82,7 @@
    1.13  #ifndef DISABLE_AUDIO
    1.14  	/* Initialize the audio subsystem */
    1.15  	if ( (flags & SDL_INIT_AUDIO) && !(SDL_initialized & SDL_INIT_AUDIO) ) {
    1.16 -		if ( SDL_AudioInit(getenv("SDL_AUDIODRIVER")) < 0 ) {
    1.17 +		if ( SDL_AudioInit(SDL_getenv("SDL_AUDIODRIVER")) < 0 ) {
    1.18  			return(-1);
    1.19  		}
    1.20  		SDL_initialized |= SDL_INIT_AUDIO;