# HG changeset patch # User Sam Lantinga # Date 1187245251 0 # Node ID e1d2284565371aab32be99d4d918f4a978e1cdd0 # Parent 5a58b57b6724c1382b89197220708b4dff1c3456 Fixed a few compiler warnings. Added SDL_blit_copy.c to the Visual C++ project The SSE and MMX intrinsics don't compile on Visual Studio yet... diff -r 5a58b57b6724 -r e1d228456537 VisualC/SDL/SDL.vcproj --- a/VisualC/SDL/SDL.vcproj Thu Aug 16 05:56:24 2007 +0000 +++ b/VisualC/SDL/SDL.vcproj Thu Aug 16 06:20:51 2007 +0000 @@ -417,6 +417,14 @@ > + + + + diff -r 5a58b57b6724 -r e1d228456537 src/video/SDL_blit.c --- a/src/video/SDL_blit.c Thu Aug 16 05:56:24 2007 +0000 +++ b/src/video/SDL_blit.c Thu Aug 16 06:20:51 2007 +0000 @@ -139,10 +139,11 @@ static Uint32 features = 0xffffffff; if (features == 0xffffffff) { + const char *override = SDL_getenv("SDL_BLIT_FEATURES"); + features = SDL_BLIT_ANY; - /* Provide an override for testing .. */ - const char *override = SDL_getenv("SDL_BLIT_FEATURES"); + /* Allow an override for testing .. */ if (override) { SDL_sscanf(override, "%u", &features); } else { @@ -152,7 +153,7 @@ if (SDL_HasSSE()) { features |= SDL_BLIT_SSE; } - if (SDL_HasAltivec()) { + if (SDL_HasAltiVec()) { if (SDL_UseAltivecPrefetch()) { features |= SDL_BLIT_ALTIVEC_PREFETCH; } else { diff -r 5a58b57b6724 -r e1d228456537 src/video/SDL_blit.h --- a/src/video/SDL_blit.h Thu Aug 16 05:56:24 2007 +0000 +++ b/src/video/SDL_blit.h Thu Aug 16 06:20:51 2007 +0000 @@ -31,6 +31,7 @@ #include #endif +#include "SDL_cpuinfo.h" #include "SDL_endian.h" /* The structure passed to the low level blit functions */ diff -r 5a58b57b6724 -r e1d228456537 src/video/SDL_blit_copy.c --- a/src/video/SDL_blit_copy.c Thu Aug 16 05:56:24 2007 +0000 +++ b/src/video/SDL_blit_copy.c Thu Aug 16 06:20:51 2007 +0000 @@ -21,6 +21,7 @@ */ #include "SDL_config.h" +#include "SDL_cpuinfo.h" #include "SDL_video.h" #include "SDL_blit.h" #include "SDL_blit_copy.h"