diff --git a/magic/icons/realrainbow.png b/magic/icons/realrainbow.png new file mode 100644 index 000000000..670158345 Binary files /dev/null and b/magic/icons/realrainbow.png differ diff --git a/magic/icons/rosette.png b/magic/icons/rosette.png new file mode 100644 index 000000000..d16bdab1f Binary files /dev/null and b/magic/icons/rosette.png differ diff --git a/magic/src/realrainbow.c b/magic/src/realrainbow.c index a5a26f43f..f2990cff4 100644 --- a/magic/src/realrainbow.c +++ b/magic/src/realrainbow.c @@ -6,10 +6,9 @@ by Bill Kendrick Math assistence by Jeff Newmiller - 2009.04.02 - 2009.04.28 + 2009.04.02 - 2009.05.27 FIXME: -* Needs icon. * Needs sound effect. * Color/alpha art needs improvement. * Pixel gaps appear in lines sometimes (esp. larger rainbows). @@ -60,8 +59,12 @@ int realrainbow_get_tool_count(magic_api * api) SDL_Surface * realrainbow_get_icon(magic_api * api, int which) { - /* FIXME */ - return(NULL); + char fname[1024]; + + snprintf(fname, sizeof(fname), "%s/images/magic/realrainbow.png", + api->data_directory); + + return(IMG_Load(fname)); } char * realrainbow_get_name(magic_api * api, int which)