diff --git a/magic/src/emitter.c b/magic/src/emitter.c index 6bf03d808..cae0c3319 100644 --- a/magic/src/emitter.c +++ b/magic/src/emitter.c @@ -4,7 +4,7 @@ "Emitter" Magic Tool Plugin Tux Paint - A simple drawing program for children. - Copyright (c) 2024-2024 by Bill Kendrick and others; see AUTHORS.txt + Copyright (c) 2024-2025 by Bill Kendrick and others; see AUTHORS.txt bill@newbreedsoftware.com https://tuxpaint.org/ @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: December 26, 2024 + Last updated: April 19, 2025 */ #include @@ -282,7 +282,7 @@ char *emitter_get_description(magic_api *api ATTRIBUTE_UNUSED, int which, int mo } void emitter_drag(magic_api *api, int which, SDL_Surface *canvas, - SDL_Surface *last, int ox, int oy, int x, int y, SDL_Rect *update_rect) + SDL_Surface *last, int ox ATTRIBUTE_UNUSED, int oy ATTRIBUTE_UNUSED, int x, int y, SDL_Rect *update_rect) { int i, img; SDL_Surface *tmpSurf, *srcSurf; @@ -376,7 +376,6 @@ void emitter_drag(magic_api *api, int which, SDL_Surface *canvas, if (tmpSurf != NULL) { - int xx, yy; Uint32 amask; SDL_Surface *tmpSurf2; Uint8 r, g, b, a; @@ -449,9 +448,9 @@ void emitter_click(magic_api *api, int which, int mode ATTRIBUTE_UNUSED, emitter_drag(api, which, canvas, last, x, y, x, y, update_rect); } -void emitter_release(magic_api *api, int which, - SDL_Surface *canvas, SDL_Surface *last ATTRIBUTE_UNUSED, - int x, int y ATTRIBUTE_UNUSED, SDL_Rect *update_rect ATTRIBUTE_UNUSED) +void emitter_release(magic_api *api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, + SDL_Surface *canvas ATTRIBUTE_UNUSED, SDL_Surface *last ATTRIBUTE_UNUSED, + int x ATTRIBUTE_UNUSED, int y ATTRIBUTE_UNUSED, SDL_Rect *update_rect ATTRIBUTE_UNUSED) { } @@ -463,7 +462,7 @@ void emitter_shutdown(magic_api *api ATTRIBUTE_UNUSED) Mix_FreeChunk(emitter_snds[i]); } -void emitter_set_color(magic_api *api, int which ATTRIBUTE_UNUSED, +void emitter_set_color(magic_api *api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface *canvas ATTRIBUTE_UNUSED, SDL_Surface *last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect *update_rect ATTRIBUTE_UNUSED)