Bill Kendrick
44d7d0ee5d
Re-run indent.sh under GNU indent 2.2.13
...
Slight change to its default behavior re: pointer variables
(before: "type * var"; now seems to prefer: "type *var").
2024-10-20 11:22:30 -07:00
Bill Kendrick
244ab1d6f2
Being more consistent w/ use of gettext()/_noop()
...
...in Magic tools (for names & descriptions / tool-tips).
2024-10-07 21:44:08 -07:00
Bill Kendrick
4f9112d597
Xor Magic tool: Better description; respond to "order"
2024-01-16 22:43:11 -08:00
Bill Kendrick
2055b071f1
All magic tools: Add "complexity_level" arg to init()
2023-12-29 14:43:40 -08:00
Bill Kendrick
18f9cad6fe
Adding "indent.sh" to re-indent code; ran it!!!
2023-04-23 23:26:00 -07:00
Bill Kendrick
d4db61b084
Xor Colors: Support sizes
2023-04-22 12:16:49 -07:00
Bill Kendrick
4d932f800b
Add ATTRIBUTE_UNUSED back to MAGIC_set_color() funcs
...
Avoid compile time warnings
2023-02-12 13:17:49 -08:00
Bill Kendrick
3b1c26c93d
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.
2023-01-25 02:15:19 -08:00
Bill Kendrick
2083b66564
Various Magic tools: mend update_rect->h miscalc.
...
e.g. this "update_rect->h = (y + 16) - update_rect->h;"
should be "update_rect->h = (y + 16) - update_rect->y;"
2022-10-19 01:37:36 -07:00
Bill Kendrick
cc05925d9e
Re-ran indent on all .c & .h source code files
...
Like so --
find . -name "*.c" -or -name "*.h" -exec indent -nbfda -npcs -npsl -bli0 --no-tabs {} \;
The `indent` invocation differs from the last one noted in
CHANGES.txt (from 2006!?), in that I've added "--no-tabs",
to ensure indents are all space-based.
2022-09-15 00:14:20 -07:00
Pere Pujal i Carabantes
b6b0636eb5
Merge branch 'master' into sdl2.0
2021-09-27 23:32:48 +02:00
Bill Kendrick
1d5dd8eb9f
Finished organizing Magic tools; updated docs
...
Added group code to `tp_magic_example.c`, and documented
in the "Creating Tux Paint Magic Tool Plugins" docs.
2021-09-21 01:02:22 -07:00
Pere Pujal i Carabantes
f836cc775a
Magic tools: Inline->static for android, corrected paths to avoid double slash which makes SDL2 not loading the stuff from assets.
...
Thoose changes were already in the SDL2 and android versions, they were reverted somehow...
2018-02-28 00:23:15 +01:00
Bill Kendrick
4ab8280bbe
indent xor.c
2017-10-15 11:51:27 -07:00
Pere Pujal i Carabantes
0ab5f8e321
New Xor magic tool by Łukasz Dmitrowski.
2013-04-09 22:40:27 +00:00