All magic tools: Add "complexity_level" arg to init()

This commit is contained in:
Bill Kendrick 2023-12-29 14:43:40 -08:00
parent 0bc54921d9
commit 2055b071f1
61 changed files with 185 additions and 189 deletions

View file

@ -1,6 +1,6 @@
/* halftone.c
Last updated: April 22, 2023
Last updated: December 29, 2023
*/
@ -62,7 +62,7 @@ void halftone_drag(magic_api * api, int which, SDL_Surface * canvas,
SDL_Surface * snapshot, int ox, int oy, int x, int y, SDL_Rect * update_rect);
void halftone_line_callback(void *ptr, int which, SDL_Surface * canvas, SDL_Surface * snapshot, int x, int y);
Uint32 halftone_api_version(void);
int halftone_init(magic_api * api, Uint32 disabled_features);
int halftone_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level);
int halftone_get_tool_count(magic_api * api);
SDL_Surface *halftone_get_icon(magic_api * api, int which);
char *halftone_get_name(magic_api * api, int which);
@ -92,7 +92,7 @@ Uint32 halftone_api_version(void)
return (TP_MAGIC_API_VERSION);
}
int halftone_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED)
int halftone_init(magic_api * api, Uint8 disabled_features ATTRIBUTE_UNUSED, Uint8 complexity_level ATTRIBUTE_UNUSED)
{
int i;
char fname[1024];