Fixed a few compiler warnings.
authorSam Lantinga
Thu, 16 Aug 2007 06:20:51 +0000
changeset 2250e1d228456537
parent 2249 5a58b57b6724
child 2251 292bee385630
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...
VisualC/SDL/SDL.vcproj
src/video/SDL_blit.c
src/video/SDL_blit.h
src/video/SDL_blit_copy.c
     1.1 --- a/VisualC/SDL/SDL.vcproj	Thu Aug 16 05:56:24 2007 +0000
     1.2 +++ b/VisualC/SDL/SDL.vcproj	Thu Aug 16 06:20:51 2007 +0000
     1.3 @@ -417,6 +417,14 @@
     1.4  			>
     1.5  		</File>
     1.6  		<File
     1.7 +			RelativePath="..\..\src\video\SDL_blit_copy.c"
     1.8 +			>
     1.9 +		</File>
    1.10 +		<File
    1.11 +			RelativePath="..\..\src\video\SDL_blit_copy.h"
    1.12 +			>
    1.13 +		</File>
    1.14 +		<File
    1.15  			RelativePath="..\..\src\video\SDL_blit_N.c"
    1.16  			>
    1.17  		</File>
     2.1 --- a/src/video/SDL_blit.c	Thu Aug 16 05:56:24 2007 +0000
     2.2 +++ b/src/video/SDL_blit.c	Thu Aug 16 06:20:51 2007 +0000
     2.3 @@ -139,10 +139,11 @@
     2.4      static Uint32 features = 0xffffffff;
     2.5  
     2.6      if (features == 0xffffffff) {
     2.7 +        const char *override = SDL_getenv("SDL_BLIT_FEATURES");
     2.8 +
     2.9          features = SDL_BLIT_ANY;
    2.10  
    2.11 -        /* Provide an override for testing .. */
    2.12 -        const char *override = SDL_getenv("SDL_BLIT_FEATURES");
    2.13 +        /* Allow an override for testing .. */
    2.14          if (override) {
    2.15              SDL_sscanf(override, "%u", &features);
    2.16          } else {
    2.17 @@ -152,7 +153,7 @@
    2.18              if (SDL_HasSSE()) {
    2.19                  features |= SDL_BLIT_SSE;
    2.20              }
    2.21 -            if (SDL_HasAltivec()) {
    2.22 +            if (SDL_HasAltiVec()) {
    2.23                  if (SDL_UseAltivecPrefetch()) {
    2.24                      features |= SDL_BLIT_ALTIVEC_PREFETCH;
    2.25                  } else {
     3.1 --- a/src/video/SDL_blit.h	Thu Aug 16 05:56:24 2007 +0000
     3.2 +++ b/src/video/SDL_blit.h	Thu Aug 16 06:20:51 2007 +0000
     3.3 @@ -31,6 +31,7 @@
     3.4  #include <xmmintrin.h>
     3.5  #endif
     3.6  
     3.7 +#include "SDL_cpuinfo.h"
     3.8  #include "SDL_endian.h"
     3.9  
    3.10  /* The structure passed to the low level blit functions */
     4.1 --- a/src/video/SDL_blit_copy.c	Thu Aug 16 05:56:24 2007 +0000
     4.2 +++ b/src/video/SDL_blit_copy.c	Thu Aug 16 06:20:51 2007 +0000
     4.3 @@ -21,6 +21,7 @@
     4.4  */
     4.5  #include "SDL_config.h"
     4.6  
     4.7 +#include "SDL_cpuinfo.h"
     4.8  #include "SDL_video.h"
     4.9  #include "SDL_blit.h"
    4.10  #include "SDL_blit_copy.h"