Emitter Magic tools: Icons

This commit is contained in:
Bill Kendrick 2024-12-26 21:11:28 -08:00
parent 3cd9e1cbfd
commit 32587d99a0
6 changed files with 2 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -246,11 +246,11 @@ int emitter_get_tool_count(magic_api *api ATTRIBUTE_UNUSED)
}
// Load our icons:
SDL_Surface *emitter_get_icon(magic_api *api, int which ATTRIBUTE_UNUSED)
SDL_Surface *emitter_get_icon(magic_api *api, int which)
{
char fname[1024];
snprintf(fname, sizeof(fname), "%simages/magic/light.png", api->data_directory); // FIXME
snprintf(fname, sizeof(fname), "%simages/magic/emitter%d_icon.png", api->data_directory, which);
return (IMG_Load(fname));
}