Update all other Magic tools' "set_color()"
FIXME: This loses "ATTRIBUTE_UNUSED" where they existed, and also
all of the files committed here need that compiler hint added to
all of the new arguments ('canvas', 'last', etc.) since they
obviously don't use them either.
This commit is contained in:
parent
34de8311db
commit
3b1c26c93d
54 changed files with 342 additions and 326 deletions
|
|
@ -4,7 +4,7 @@
|
|||
Tornado Magic Tool Plugin
|
||||
Tux Paint - A simple drawing program for children.
|
||||
|
||||
Copyright (c) 2002-2022 by Bill Kendrick and others; see AUTHORS.txt
|
||||
Copyright (c) 2002-2023 by Bill Kendrick and others; see AUTHORS.txt
|
||||
bill@newbreedsoftware.com
|
||||
https://tuxpaint.org/
|
||||
|
||||
|
|
@ -27,8 +27,7 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
(See COPYING.txt)
|
||||
|
||||
Last updated: December 11, 2022
|
||||
$Id$
|
||||
Last updated: January 25, 2023
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
@ -102,7 +101,8 @@ void tornado_release(magic_api * api, int which, SDL_Surface * canvas,
|
|||
SDL_Rect * update_rect);
|
||||
|
||||
void tornado_shutdown(magic_api * api);
|
||||
void tornado_set_color(magic_api * api, Uint8 r, Uint8 g, Uint8 b);
|
||||
void tornado_set_color(magic_api * api, int which, SDL_Surface * canvas,
|
||||
SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect);
|
||||
int tornado_requires_colors(magic_api * api, int which);
|
||||
void tornado_switchin(magic_api * api, int which, int mode,
|
||||
SDL_Surface * canvas);
|
||||
|
|
@ -483,7 +483,8 @@ void tornado_shutdown(magic_api * api ATTRIBUTE_UNUSED)
|
|||
}
|
||||
|
||||
// Record the color from Tux Paint:
|
||||
void tornado_set_color(magic_api * api, Uint8 r, Uint8 g, Uint8 b)
|
||||
void tornado_set_color(magic_api * api, int which, SDL_Surface * canvas,
|
||||
SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect)
|
||||
{
|
||||
tornado_r = r;
|
||||
tornado_g = g;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue