Strecth: Update to new plugin API
This commit is contained in:
parent
3132aebf95
commit
ce353703c3
1 changed files with 21 additions and 3 deletions
|
|
@ -25,7 +25,7 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
(See COPYING.txt)
|
(See COPYING.txt)
|
||||||
|
|
||||||
Last updated: February 12, 2023
|
Last updated: April 19, 2023
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tp_magic_api.h"
|
#include "tp_magic_api.h"
|
||||||
|
|
@ -52,7 +52,7 @@ Mix_Chunk *stretch_snd;
|
||||||
Uint32 stretch_api_version(void);
|
Uint32 stretch_api_version(void);
|
||||||
void stretch_set_color(magic_api * api, int which, SDL_Surface * canvas,
|
void stretch_set_color(magic_api * api, int which, SDL_Surface * canvas,
|
||||||
SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect);
|
SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect);
|
||||||
int stretch_init(magic_api * api);
|
int stretch_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED);
|
||||||
int stretch_get_tool_count(magic_api * api);
|
int stretch_get_tool_count(magic_api * api);
|
||||||
SDL_Surface *stretch_get_icon(magic_api * api, int which);
|
SDL_Surface *stretch_get_icon(magic_api * api, int which);
|
||||||
char *stretch_get_name(magic_api * api, int which);
|
char *stretch_get_name(magic_api * api, int which);
|
||||||
|
|
@ -76,6 +76,9 @@ void stretch_switchin(magic_api * api, int which, int mode,
|
||||||
void stretch_switchout(magic_api * api, int which, int mode,
|
void stretch_switchout(magic_api * api, int which, int mode,
|
||||||
SDL_Surface * canvas);
|
SDL_Surface * canvas);
|
||||||
int stretch_modes(magic_api * api, int which);
|
int stretch_modes(magic_api * api, int which);
|
||||||
|
Uint8 stretch_accepted_sizes(magic_api * api, int which, int mode);
|
||||||
|
Uint8 stretch_default_size(magic_api * api, int which, int mode);
|
||||||
|
void stretch_set_size(magic_api * api, int which, int mode, SDL_Surface * canvas, SDL_Surface * last, Uint8 size, SDL_Rect * update_rect);
|
||||||
|
|
||||||
// Housekeeping functions
|
// Housekeeping functions
|
||||||
Uint32 stretch_api_version(void)
|
Uint32 stretch_api_version(void)
|
||||||
|
|
@ -88,7 +91,7 @@ void stretch_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNU
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int stretch_init(magic_api * api)
|
int stretch_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
char fname[1024];
|
char fname[1024];
|
||||||
|
|
||||||
|
|
@ -311,3 +314,18 @@ int stretch_modes(magic_api * api ATTRIBUTE_UNUSED,
|
||||||
{
|
{
|
||||||
return (MODE_PAINT);
|
return (MODE_PAINT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Uint8 stretch_accepted_sizes(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_UNUSED)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
Uint8 stretch_default_size(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_UNUSED)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void stretch_set_size(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 size ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue