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,7 +1,7 @@
/*
Folds the picture down from the corners.
Last updated: April 18, 2023
Last updated: December 29, 2023
*/
//optimized version soon :)
@ -42,7 +42,7 @@ void translate_xy(SDL_Surface * canvas, int x, int y, int *a, int *b, int rotati
Uint32 fold_api_version(void);
void fold_set_color(magic_api * api, int which, SDL_Surface * canvas,
SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect);
int fold_init(magic_api * api, Uint32 disabled_features);
int fold_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level);
int fold_get_tool_count(magic_api * api);
SDL_Surface *fold_get_icon(magic_api * api, int which);
char *fold_get_name(magic_api * api, int which);
@ -85,7 +85,7 @@ void fold_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED
fold_b = b;
}
int fold_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED)
int fold_init(magic_api * api, Uint8 disabled_features ATTRIBUTE_UNUSED, Uint8 complexity_level ATTRIBUTE_UNUSED)
{
char fname[1024];