summaryrefslogtreecommitdiff
path: root/test/testnative.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2012-01-22 18:11:41 -0500
committerSam Lantinga <slouken@libsdl.org>2012-01-22 18:11:41 -0500
commit46c78936612606a1ea4108e270f56e196c14695a (patch)
treeb156bca7f831b591a389bc1498686ad36543fd61 /test/testnative.c
parent7da7510079313ec26603181baece15710a9aac7e (diff)
Removed the SDL 1.2 compatibility API... we'll see how painful this is.
Diffstat (limited to 'test/testnative.c')
-rw-r--r--test/testnative.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testnative.c b/test/testnative.c
index 6e9b2491..ec66c18a 100644
--- a/test/testnative.c
+++ b/test/testnative.c
@@ -62,7 +62,7 @@ LoadSprite(SDL_Renderer *renderer, char *file)
/* 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);
}
/* Create textures from the image */