test/testsprite2.c
changeset 3560 5543db4239e6
parent 3536 0267b8b1595c
child 3596 f638ded38b8a
     1.1 --- a/test/testsprite2.c	Mon Dec 14 06:52:17 2009 +0000
     1.2 +++ b/test/testsprite2.c	Mon Dec 14 23:29:37 2009 +0000
     1.3 @@ -57,22 +57,20 @@
     1.4  
     1.5      /* Set transparent pixel as the pixel at (0,0) */
     1.6      if (temp->format->palette) {
     1.7 -        SDL_SetColorKey(temp, SDL_SRCCOLORKEY, *(Uint8 *) temp->pixels);
     1.8 +        SDL_SetColorKey(temp, 1, *(Uint8 *) temp->pixels);
     1.9      } else {
    1.10          switch (temp->format->BitsPerPixel) {
    1.11          case 15:
    1.12 -            SDL_SetColorKey(temp, SDL_SRCCOLORKEY,
    1.13 -                            (*(Uint16 *) temp->pixels) & 0x00007FFF);
    1.14 +            SDL_SetColorKey(temp, 1, (*(Uint16 *) temp->pixels) & 0x00007FFF);
    1.15              break;
    1.16          case 16:
    1.17 -            SDL_SetColorKey(temp, SDL_SRCCOLORKEY, *(Uint16 *) temp->pixels);
    1.18 +            SDL_SetColorKey(temp, 1, *(Uint16 *) temp->pixels);
    1.19              break;
    1.20          case 24:
    1.21 -            SDL_SetColorKey(temp, SDL_SRCCOLORKEY,
    1.22 -                            (*(Uint32 *) temp->pixels) & 0x00FFFFFF);
    1.23 +            SDL_SetColorKey(temp, 1, (*(Uint32 *) temp->pixels) & 0x00FFFFFF);
    1.24              break;
    1.25          case 32:
    1.26 -            SDL_SetColorKey(temp, SDL_SRCCOLORKEY, *(Uint32 *) temp->pixels);
    1.27 +            SDL_SetColorKey(temp, 1, *(Uint32 *) temp->pixels);
    1.28              break;
    1.29          }
    1.30      }