test/testsprite2.c
changeset 5140 e743b9c3f6d6
parent 5138 da10636e5eca
child 5147 ad50b3db78bd
     1.1 --- a/test/testsprite2.c	Mon Jan 31 22:53:45 2011 -0800
     1.2 +++ b/test/testsprite2.c	Mon Jan 31 23:23:57 2011 -0800
     1.3 @@ -20,7 +20,7 @@
     1.4  static SDL_Rect *positions;
     1.5  static SDL_Rect *velocities;
     1.6  static int sprite_w, sprite_h;
     1.7 -static SDL_BlendMode blendMode = SDL_BLENDMODE_MASK;
     1.8 +static SDL_BlendMode blendMode = SDL_BLENDMODE_BLEND;
     1.9  
    1.10  /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
    1.11  static void
    1.12 @@ -237,18 +237,12 @@
    1.13                      if (SDL_strcasecmp(argv[i + 1], "none") == 0) {
    1.14                          blendMode = SDL_BLENDMODE_NONE;
    1.15                          consumed = 2;
    1.16 -                    } else if (SDL_strcasecmp(argv[i + 1], "mask") == 0) {
    1.17 -                        blendMode = SDL_BLENDMODE_MASK;
    1.18 -                        consumed = 2;
    1.19                      } else if (SDL_strcasecmp(argv[i + 1], "blend") == 0) {
    1.20                          blendMode = SDL_BLENDMODE_BLEND;
    1.21                          consumed = 2;
    1.22                      } else if (SDL_strcasecmp(argv[i + 1], "add") == 0) {
    1.23                          blendMode = SDL_BLENDMODE_ADD;
    1.24                          consumed = 2;
    1.25 -                    } else if (SDL_strcasecmp(argv[i + 1], "mod") == 0) {
    1.26 -                        blendMode = SDL_BLENDMODE_MOD;
    1.27 -                        consumed = 2;
    1.28                      }
    1.29                  }
    1.30              } else if (SDL_strcasecmp(argv[i], "--cyclecolor") == 0) {
    1.31 @@ -264,7 +258,7 @@
    1.32          }
    1.33          if (consumed < 0) {
    1.34              fprintf(stderr,
    1.35 -                    "Usage: %s %s [--blend none|mask|blend|add|mod] [--cyclecolor] [--cyclealpha]\n",
    1.36 +                    "Usage: %s %s [--blend none|blend|add] [--cyclecolor] [--cyclealpha]\n",
    1.37                      argv[0], CommonUsage(state));
    1.38              quit(1);
    1.39          }