Use the enumerated type for blend and scale mode instead of int

Renamed SDL_TextureScaleMode to SDL_ScaleMode
This commit is contained in:
Sam Lantinga 2010-12-12 15:19:05 -08:00
parent 0893ec9ce4
commit 35cc558917
28 changed files with 355 additions and 282 deletions

View file

@ -437,16 +437,16 @@ static void
PrintScaleMode(Uint32 flag)
{
switch (flag) {
case SDL_TEXTURESCALEMODE_NONE:
case SDL_SCALEMODE_NONE:
fprintf(stderr, "None");
break;
case SDL_TEXTURESCALEMODE_FAST:
case SDL_SCALEMODE_FAST:
fprintf(stderr, "Fast");
break;
case SDL_TEXTURESCALEMODE_SLOW:
case SDL_SCALEMODE_SLOW:
fprintf(stderr, "Slow");
break;
case SDL_TEXTURESCALEMODE_BEST:
case SDL_SCALEMODE_BEST:
fprintf(stderr, "Best");
break;
default: