Commit graph

21 commits

Author SHA1 Message Date
Bill Kendrick
55cdd3b49c String magics: update to new plugin API; use XOR
String 'V' and String corner magic tools preview with XOR effect.
2023-04-19 22:08:14 -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
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
a1c778135d Merge branch 'master' into sdl2.0
Merging master 2019-september-24 into sdl2.0 branch
2019-09-24 14:52:40 +02:00
Bill Kendrick
7938480174 Clean up GCC warnings (2019-08-29 edition)
Updated most parts of the code that were throwing warnings in GCC.
2019-08-30 00:01:00 -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
Pere Pujal i Carabantes
1e0ea6d4b3 Indentation. 2017-12-19 02:17:27 +01:00
Pere Pujal i Carabantes
8693724975 More on SDL2. Now compiles, still needs a lot of cleaning and work to deal with SDL_DisplayFormat* from 1.2 2017-12-06 06:39:37 +01:00
Bill Kendrick
d311aeb236 indent string.c 2017-10-15 11:51:02 -07:00
Pere Pujal i Carabantes
ca77060aa5 Two of the string tools now uses MODE_PAINT_WITH_PREVIEW 2011-05-10 11:49:19 +00:00
secretlondon
6146163d26 two more sounds for string tools. 2009-06-18 20:30:02 +00:00
Pere Pujal i Carabantes
a0a4438869 Correct mistake when freeing at shutdown 2009-06-15 17:01:33 +00:00
Pere Pujal i Carabantes
fdd70e41eb Added code support for three different sounds in strings, needs sound files. Playing changed from release to drag. 2009-06-15 16:15:37 +00:00
secretlondon
bcc8169cf2 Trying to make the string descriptions more suitable for children. Needs more. 2009-06-13 21:49:15 +00:00
William Kendrick
82092363b6 Using new string sound. 2009-06-06 18:27:21 +00:00
secretlondon
d046eeacb1 sound for string tool - needs code adding 2009-06-06 14:04:48 +00:00
Shin-ichi TOYAMA
82a232dca8 corrected wrong position of declaration for variables in some magic tools. 2009-05-26 15:00:26 +00:00
William Kendrick
03cdde257d Added 3 'string art' tools. 2009-02-21 21:12:21 +00:00