src/video/SDL_yuv.c
changeset 1336 3692456e7b0f
parent 1330 450721ad5436
child 1338 604d73db6802
     1.1 --- a/src/video/SDL_yuv.c	Mon Feb 06 17:28:04 2006 +0000
     1.2 +++ b/src/video/SDL_yuv.c	Tue Feb 07 06:59:48 2006 +0000
     1.3 @@ -44,7 +44,7 @@
     1.4  	}
     1.5  
     1.6  	/* Display directly on video surface, if possible */
     1.7 -	if ( getenv("SDL_VIDEO_YUV_DIRECT") ) {
     1.8 +	if ( SDL_getenv("SDL_VIDEO_YUV_DIRECT") ) {
     1.9  		if ( (display == SDL_PublicSurface) &&
    1.10  		     ((SDL_VideoSurface->format->BytesPerPixel == 2) ||
    1.11  		      (SDL_VideoSurface->format->BytesPerPixel == 4)) ) {
    1.12 @@ -52,7 +52,7 @@
    1.13  		}
    1.14  	}
    1.15  	overlay = NULL;
    1.16 -        yuv_hwaccel = getenv("SDL_VIDEO_YUV_HWACCEL");
    1.17 +        yuv_hwaccel = SDL_getenv("SDL_VIDEO_YUV_HWACCEL");
    1.18  	if ( ((display == SDL_VideoSurface) && video->CreateYUVOverlay) &&
    1.19  	     (!yuv_hwaccel || (*yuv_hwaccel != '0')) ) {
    1.20  		overlay = video->CreateYUVOverlay(this, w, h, format, display);
    1.21 @@ -85,6 +85,6 @@
    1.22  		if ( overlay->hwfuncs ) {
    1.23  			overlay->hwfuncs->FreeHW(current_video, overlay);
    1.24  		}
    1.25 -		free(overlay);
    1.26 +		SDL_free(overlay);
    1.27  	}
    1.28  }