comparison 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
comparison
equal deleted inserted replaced
1329:bc67bbf87818 1330:450721ad5436
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 22
23 /* This is the implementation of the YUV video surface support */ 23 /* This is the implementation of the YUV video surface support */
24 24
25 #include <stdlib.h>
26 #include <string.h>
27
28 #include "SDL_getenv.h"
29 #include "SDL_video.h" 25 #include "SDL_video.h"
30 #include "SDL_error.h" 26 #include "SDL_error.h"
27 #include "SDL_stdlib.h"
31 #include "SDL_sysvideo.h" 28 #include "SDL_sysvideo.h"
32 #include "SDL_yuvfuncs.h" 29 #include "SDL_yuvfuncs.h"
33 #include "SDL_yuv_sw_c.h" 30 #include "SDL_yuv_sw_c.h"
34 31
35 32
55 } 52 }
56 } 53 }
57 overlay = NULL; 54 overlay = NULL;
58 yuv_hwaccel = getenv("SDL_VIDEO_YUV_HWACCEL"); 55 yuv_hwaccel = getenv("SDL_VIDEO_YUV_HWACCEL");
59 if ( ((display == SDL_VideoSurface) && video->CreateYUVOverlay) && 56 if ( ((display == SDL_VideoSurface) && video->CreateYUVOverlay) &&
60 (!yuv_hwaccel || (atoi(yuv_hwaccel) > 0)) ) { 57 (!yuv_hwaccel || (*yuv_hwaccel != '0')) ) {
61 overlay = video->CreateYUVOverlay(this, w, h, format, display); 58 overlay = video->CreateYUVOverlay(this, w, h, format, display);
62 } 59 }
63 /* If hardware YUV overlay failed ... */ 60 /* If hardware YUV overlay failed ... */
64 if ( overlay == NULL ) { 61 if ( overlay == NULL ) {
65 overlay = SDL_CreateYUV_SW(this, w, h, format, display); 62 overlay = SDL_CreateYUV_SW(this, w, h, format, display);