Sync tp_magic_examples.c to get mended set_size() function
This commit is contained in:
parent
63dfc030f7
commit
9fa5c649d1
14 changed files with 28 additions and 28 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
January 16, 2024
|
||||
February 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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
January 16, 2024
|
||||
February 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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
janvier 16, 2024
|
||||
février 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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
janvier 16, 2024
|
||||
février 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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
Xaneiro 16, 2024
|
||||
Febreiro 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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
Xaneiro 16, 2024
|
||||
Febreiro 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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
16. janúar 2024
|
||||
28. febrúar 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 * skjámynd, Uint8 stærð, SDL_Rect * update_rect)
|
||||
void example_set_size(magic_api * api, int which, int mode, SDL_Surface * canvas, SDL_Surface * skjámynd, Uint8 stærð, SDL_Rect * update_rect)
|
||||
{
|
||||
/*
|
||||
Store the new size into the global variable we declared at the top of
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
16. janúar 2024
|
||||
28. febrúar 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 * skjámynd, Uint8 stærð, SDL_Rect * update_rect)
|
||||
void example_set_size(magic_api * api, int which, int mode, SDL_Surface * canvas, SDL_Surface * skjámynd, Uint8 stærð, SDL_Rect * update_rect)
|
||||
{
|
||||
/*
|
||||
Store the new size into the global variable we declared at the top of
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
1月 16, 2024
|
||||
2月 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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
1月 16, 2024
|
||||
2月 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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
janar 16, 2024
|
||||
shkurt 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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* tp_magic_example.c
|
||||
|
||||
An example of a "Magic" tool plugin for Tux Paint
|
||||
janar 16, 2024
|
||||
shkurt 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue