Mercurial > sdl-ios-xcode
diff src/video/SDL_yuv.c @ 1341:d02b552e5304
Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 12:11:33 +0000 |
parents | 604d73db6802 |
children | c71e05b4dc2e |
line wrap: on
line diff
--- a/src/video/SDL_yuv.c Tue Feb 07 11:18:21 2006 +0000 +++ b/src/video/SDL_yuv.c Tue Feb 07 12:11:33 2006 +0000 @@ -23,6 +23,7 @@ /* This is the implementation of the YUV video surface support */ #include "SDL_stdlib.h" +#include "SDL_string.h" #include "SDL_video.h" #include "SDL_error.h" #include "SDL_sysvideo.h" @@ -54,7 +55,7 @@ overlay = NULL; yuv_hwaccel = SDL_getenv("SDL_VIDEO_YUV_HWACCEL"); if ( ((display == SDL_VideoSurface) && video->CreateYUVOverlay) && - (!yuv_hwaccel || (*yuv_hwaccel != '0')) ) { + (!yuv_hwaccel || (SDL_atoi(yuv_hwaccel) > 0)) ) { overlay = video->CreateYUVOverlay(this, w, h, format, display); } /* If hardware YUV overlay failed ... */