summaryrefslogtreecommitdiffstats
path: root/src/resources/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/map.c')
-rw-r--r--src/resources/map.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/map.c b/src/resources/map.c
index 0719a14..6c96650 100644
--- a/src/resources/map.c
+++ b/src/resources/map.c
@@ -461,6 +461,10 @@ tmx_tileset_el_start(void *pv, const char *name, const char **attr)
}
sprintf(path, "%s/%s", dirname, source);
img = img_png_get(path);
+ /* TODO: Get the color key from the trans attribute. */
+ SDL_SetColorKey(img->image, SDL_SRCCOLORKEY,
+ SDL_MapRGB(img->image->format,
+ 0xFC, 0x00, 0xFF));
free(source);
} else if (ts->type == TILESET_TYPE_COLLISION) {
ts->collision_tiles = malloc(ts->width * ts->height *