diff test/testsprite2.c @ 3560:5543db4239e6

The SDL 1.3 tests have been cleaned up not to include any 1.2 compatibility code.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 14 Dec 2009 23:29:37 +0000
parents 0267b8b1595c
children f638ded38b8a
line wrap: on
line diff
--- a/test/testsprite2.c	Mon Dec 14 06:52:17 2009 +0000
+++ b/test/testsprite2.c	Mon Dec 14 23:29:37 2009 +0000
@@ -57,22 +57,20 @@
 
     /* Set transparent pixel as the pixel at (0,0) */
     if (temp->format->palette) {
-        SDL_SetColorKey(temp, SDL_SRCCOLORKEY, *(Uint8 *) temp->pixels);
+        SDL_SetColorKey(temp, 1, *(Uint8 *) temp->pixels);
     } else {
         switch (temp->format->BitsPerPixel) {
         case 15:
-            SDL_SetColorKey(temp, SDL_SRCCOLORKEY,
-                            (*(Uint16 *) temp->pixels) & 0x00007FFF);
+            SDL_SetColorKey(temp, 1, (*(Uint16 *) temp->pixels) & 0x00007FFF);
             break;
         case 16:
-            SDL_SetColorKey(temp, SDL_SRCCOLORKEY, *(Uint16 *) temp->pixels);
+            SDL_SetColorKey(temp, 1, *(Uint16 *) temp->pixels);
             break;
         case 24:
-            SDL_SetColorKey(temp, SDL_SRCCOLORKEY,
-                            (*(Uint32 *) temp->pixels) & 0x00FFFFFF);
+            SDL_SetColorKey(temp, 1, (*(Uint32 *) temp->pixels) & 0x00FFFFFF);
             break;
         case 32:
-            SDL_SetColorKey(temp, SDL_SRCCOLORKEY, *(Uint32 *) temp->pixels);
+            SDL_SetColorKey(temp, 1, *(Uint32 *) temp->pixels);
             break;
         }
     }