test/testsprite2.c
changeset 3186 51750b7a966f
parent 3183 d1436442215f
child 3264 8fe0806637df
     1.1 --- a/test/testsprite2.c	Wed Jun 10 08:09:04 2009 +0000
     1.2 +++ b/test/testsprite2.c	Wed Jun 10 13:34:20 2009 +0000
     1.3 @@ -61,13 +61,15 @@
     1.4      } else {
     1.5          switch (temp->format->BitsPerPixel) {
     1.6          case 15:
     1.7 -            SDL_SetColorKey(temp, SDL_SRCCOLORKEY, (*(Uint16 *) temp->pixels) & 0x00007FFF);
     1.8 +            SDL_SetColorKey(temp, SDL_SRCCOLORKEY,
     1.9 +                            (*(Uint16 *) temp->pixels) & 0x00007FFF);
    1.10              break;
    1.11          case 16:
    1.12              SDL_SetColorKey(temp, SDL_SRCCOLORKEY, *(Uint16 *) temp->pixels);
    1.13              break;
    1.14          case 24:
    1.15 -            SDL_SetColorKey(temp, SDL_SRCCOLORKEY, (*(Uint32 *) temp->pixels) & 0x00FFFFFF);
    1.16 +            SDL_SetColorKey(temp, SDL_SRCCOLORKEY,
    1.17 +                            (*(Uint32 *) temp->pixels) & 0x00FFFFFF);
    1.18              break;
    1.19          case 32:
    1.20              SDL_SetColorKey(temp, SDL_SRCCOLORKEY, *(Uint32 *) temp->pixels);