Fix strict warnings in screen scalers, bug #50; from Sze Howe Koh

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3691 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2011-09-07 18:03:10 +00:00
parent bb33e30b79
commit f7546d3b30
+4 -4
View File
@@ -211,7 +211,7 @@ Scale_PrepPlatform (int flags, const SDL_PixelFormat* fmt)
// add better platform techs to the top // add better platform techs to the top
#ifdef MMX_ASM #ifdef MMX_ASM
if ( (!force_platform && (SDL_HasSSE () || SDL_HasMMXExt ())) if ( (!force_platform && (SDL_HasSSE () || SDL_HasMMXExt ()))
|| force_platform == SCALEPLAT_SSE) || force_platform == PLATFORM_SSE)
{ {
log_add (log_Info, "Screen scalers are using SSE/MMX-Ext/MMX code"); log_add (log_Info, "Screen scalers are using SSE/MMX-Ext/MMX code");
Scale_Platform = SCALEPLAT_SSE; Scale_Platform = SCALEPLAT_SSE;
@@ -220,7 +220,7 @@ Scale_PrepPlatform (int flags, const SDL_PixelFormat* fmt)
} }
else else
if ( (!force_platform && SDL_HasAltiVec ()) if ( (!force_platform && SDL_HasAltiVec ())
|| force_platform == SCALEPLAT_ALTIVEC) || force_platform == PLATFORM_ALTIVEC)
{ {
log_add (log_Info, "Screen scalers would use AltiVec code " log_add (log_Info, "Screen scalers would use AltiVec code "
"if someone actually wrote it"); "if someone actually wrote it");
@@ -228,7 +228,7 @@ Scale_PrepPlatform (int flags, const SDL_PixelFormat* fmt)
} }
else else
if ( (!force_platform && SDL_Has3DNow ()) if ( (!force_platform && SDL_Has3DNow ())
|| force_platform == SCALEPLAT_3DNOW) || force_platform == PLATFORM_3DNOW)
{ {
log_add (log_Info, "Screen scalers are using 3DNow/MMX code"); log_add (log_Info, "Screen scalers are using 3DNow/MMX code");
Scale_Platform = SCALEPLAT_3DNOW; Scale_Platform = SCALEPLAT_3DNOW;
@@ -237,7 +237,7 @@ Scale_PrepPlatform (int flags, const SDL_PixelFormat* fmt)
} }
else else
if ( (!force_platform && SDL_HasMMX ()) if ( (!force_platform && SDL_HasMMX ())
|| force_platform == SCALEPLAT_MMX) || force_platform == PLATFORM_MMX)
{ {
log_add (log_Info, "Screen scalers are using MMX code"); log_add (log_Info, "Screen scalers are using MMX code");
Scale_Platform = SCALEPLAT_MMX; Scale_Platform = SCALEPLAT_MMX;