test/testsprite2.c
changeset 4929 aa8888658021
parent 4884 27ab20a36eba
child 5138 da10636e5eca
     1.1 --- a/test/testsprite2.c	Thu Dec 02 11:56:23 2010 -0800
     1.2 +++ b/test/testsprite2.c	Sun Dec 12 15:19:05 2010 -0800
     1.3 @@ -21,7 +21,7 @@
     1.4  static SDL_Rect *velocities;
     1.5  static int sprite_w, sprite_h;
     1.6  static SDL_BlendMode blendMode = SDL_BLENDMODE_MASK;
     1.7 -static SDL_TextureScaleMode scaleMode = SDL_TEXTURESCALEMODE_NONE;
     1.8 +static SDL_ScaleMode scaleMode = SDL_SCALEMODE_NONE;
     1.9  
    1.10  /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
    1.11  static void
    1.12 @@ -256,16 +256,16 @@
    1.13              } else if (SDL_strcasecmp(argv[i], "--scale") == 0) {
    1.14                  if (argv[i + 1]) {
    1.15                      if (SDL_strcasecmp(argv[i + 1], "none") == 0) {
    1.16 -                        scaleMode = SDL_TEXTURESCALEMODE_NONE;
    1.17 +                        scaleMode = SDL_SCALEMODE_NONE;
    1.18                          consumed = 2;
    1.19                      } else if (SDL_strcasecmp(argv[i + 1], "fast") == 0) {
    1.20 -                        scaleMode = SDL_TEXTURESCALEMODE_FAST;
    1.21 +                        scaleMode = SDL_SCALEMODE_FAST;
    1.22                          consumed = 2;
    1.23                      } else if (SDL_strcasecmp(argv[i + 1], "slow") == 0) {
    1.24 -                        scaleMode = SDL_TEXTURESCALEMODE_SLOW;
    1.25 +                        scaleMode = SDL_SCALEMODE_SLOW;
    1.26                          consumed = 2;
    1.27                      } else if (SDL_strcasecmp(argv[i + 1], "best") == 0) {
    1.28 -                        scaleMode = SDL_TEXTURESCALEMODE_BEST;
    1.29 +                        scaleMode = SDL_SCALEMODE_BEST;
    1.30                          consumed = 2;
    1.31                      }
    1.32                  }
    1.33 @@ -316,7 +316,7 @@
    1.34          quit(2);
    1.35      }
    1.36      srand((unsigned int)time(NULL));
    1.37 -    if (scaleMode != SDL_TEXTURESCALEMODE_NONE) {
    1.38 +    if (scaleMode != SDL_SCALEMODE_NONE) {
    1.39          sprite_w += sprite_w / 2;
    1.40          sprite_h += sprite_h / 2;
    1.41      }