Mercurial > sdl-ios-xcode
diff src/video/SDL_yuv.c @ 1330:450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 06 Feb 2006 08:28:51 +0000 |
parents | c9b51268668f |
children | 3692456e7b0f |
line wrap: on
line diff
--- a/src/video/SDL_yuv.c Sat Feb 04 22:01:44 2006 +0000 +++ b/src/video/SDL_yuv.c Mon Feb 06 08:28:51 2006 +0000 @@ -22,12 +22,9 @@ /* This is the implementation of the YUV video surface support */ -#include <stdlib.h> -#include <string.h> - -#include "SDL_getenv.h" #include "SDL_video.h" #include "SDL_error.h" +#include "SDL_stdlib.h" #include "SDL_sysvideo.h" #include "SDL_yuvfuncs.h" #include "SDL_yuv_sw_c.h" @@ -57,7 +54,7 @@ overlay = NULL; yuv_hwaccel = getenv("SDL_VIDEO_YUV_HWACCEL"); if ( ((display == SDL_VideoSurface) && video->CreateYUVOverlay) && - (!yuv_hwaccel || (atoi(yuv_hwaccel) > 0)) ) { + (!yuv_hwaccel || (*yuv_hwaccel != '0')) ) { overlay = video->CreateYUVOverlay(this, w, h, format, display); } /* If hardware YUV overlay failed ... */