From b285643a82c24030573499b885d2419de2260565 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 1 Oct 2013 14:33:33 +0200 Subject: [PATCH] Fix color keys. --- src/graphics.cpp | 2 +- src/resources.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics.cpp b/src/graphics.cpp index 8dc0003..a5983b9 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -135,7 +135,7 @@ void initGraphics() SDL_Surface *setTransparent(SDL_Surface *sprite) { - SDL_SetColorKey(sprite, (SDL_TRUE|SDL_RLEACCEL), SDL_MapRGB(sprite->format, 0, 0, 0)); + SDL_SetColorKey(sprite, SDL_TRUE, SDL_MapRGB(sprite->format, 0, 0, 0)); return sprite; } diff --git a/src/resources.cpp b/src/resources.cpp index 0d5b99f..50ef05b 100644 --- a/src/resources.cpp +++ b/src/resources.cpp @@ -116,7 +116,7 @@ void loadGameGraphics() } } - SDL_SetColorKey(shipShape[i], (SDL_TRUE|SDL_RLEACCEL), SDL_MapRGB(shipShape[i]->format, 0, 0, 0)); + SDL_SetColorKey(shipShape[i], SDL_TRUE, SDL_MapRGB(shipShape[i]->format, 0, 0, 0)); } strcpy(string, "data/resources_all.dat");