src/video/SDL_yuv.c
changeset 1341 d02b552e5304
parent 1338 604d73db6802
child 1358 c71e05b4dc2e
     1.1 --- a/src/video/SDL_yuv.c	Tue Feb 07 11:18:21 2006 +0000
     1.2 +++ b/src/video/SDL_yuv.c	Tue Feb 07 12:11:33 2006 +0000
     1.3 @@ -23,6 +23,7 @@
     1.4  /* This is the implementation of the YUV video surface support */
     1.5  
     1.6  #include "SDL_stdlib.h"
     1.7 +#include "SDL_string.h"
     1.8  #include "SDL_video.h"
     1.9  #include "SDL_error.h"
    1.10  #include "SDL_sysvideo.h"
    1.11 @@ -54,7 +55,7 @@
    1.12  	overlay = NULL;
    1.13          yuv_hwaccel = SDL_getenv("SDL_VIDEO_YUV_HWACCEL");
    1.14  	if ( ((display == SDL_VideoSurface) && video->CreateYUVOverlay) &&
    1.15 -	     (!yuv_hwaccel || (*yuv_hwaccel != '0')) ) {
    1.16 +	     (!yuv_hwaccel || (SDL_atoi(yuv_hwaccel) > 0)) ) {
    1.17  		overlay = video->CreateYUVOverlay(this, w, h, format, display);
    1.18  	}
    1.19  	/* If hardware YUV overlay failed ... */