Sync tp_magic_examples.c to get mended set_size() function

This commit is contained in:
Bill Kendrick 2024-02-28 23:30:22 -08:00
parent 63dfc030f7
commit 9fa5c649d1
14 changed files with 28 additions and 28 deletions

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint
enero 16, 2024
febrero 28, 2024
*/
@ -551,7 +551,7 @@ that as well.
The size comes in as an unsigned integer (Uint8) between 1 and the value
returned by our example_accepted_sizes() function during setup.
*/
void example_set_size(magic_api * api, int which, SDL_Surface * canvas, SDL_Surface * snapshot, Uint8 size, SDL_Rect * update_rect)
void example_set_size(magic_api * api, int which, int mode, SDL_Surface * canvas, SDL_Surface * snapshot, Uint8 size, SDL_Rect * update_rect)
{
/*
Store the new size into the global variable we declared at the top of