Commit graph

340 commits

Author SHA1 Message Date
Pere Pujal i Carabantes
7b872a02df Adapting to SDL2 and Android.
SDL_ANYFORMAT is no more there and the flags field should be 0 in SDL2.
Double / that would be get in the paths poses problems in the emulated filesystem we use for Android assets.
2021-02-25 01:17:56 +01:00
Pere Pujal i Carabantes
00b4aa126f Merge branch 'master' into sdl2.0. Updating with latest changes and improvements, clone, fill,... 2021-02-25 00:48:38 +01:00
Bill Kendrick
485723d0e4 Clone tool: Displaying a crosshair at source
A crosshair appears when you first click, to show the source
position.  It then moves along with the source, as you drag
after the second click (moving relative to the mouse).
2021-02-20 15:33:56 -08:00
Bill Kendrick
7cd547e746 "xorpixel()" function added to Magic Tools API 2021-02-20 15:19:40 -08:00
Bill Kendrick
d588e5d214 Halftone magic tool wasn't loading...
... due to a problem with its sound effect file.
2021-02-20 15:14:31 -08:00
Bill Kendrick
67b05a0579 Slight cleanup of blind.c; new Checkerboard tool
Use enums everywhere; credits/copyright clean-up.
2021-02-15 23:19:21 -08:00
Pere Pujal i Carabantes
37e40952e4 Merge branch 'master' into sdl2.0: tweaks in the clone tool and french and galician translations 2021-02-12 22:01:48 +01:00
Bill Kendrick
ab8a170839 Changing clone tool to a sheep
...because the first mammal cloned from an adult somatic cell was
Dolly the sheep (1996).
2021-02-11 00:10:43 -08:00
Bill Kendrick
cea4c3f87e Adding sound effects to Clone tool
Source https://commons.wikimedia.org/wiki/File:Sheep_bleating.ogg
(Public domain)
2021-02-10 23:59:57 -08:00
Pere Pujal i Carabantes
01bfcb5846 Merge branch 'master' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint 2021-01-16 01:21:50 +01:00
Pere Pujal i Carabantes
54f6a4a07d Merge branch 'sdl2.0' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint into sdl2.0 2021-01-16 01:21:08 +01:00
Pere Pujal i Carabantes
afa562680e Merge branch 'master' into sdl2.0 2021-01-16 00:53:38 +01:00
Bill Kendrick
8406ee701b Adding icon for Clone tool 2021-01-11 09:34:21 -08:00
Bill Kendrick
1cb04f1e0a "Clone" magic tool 2021-01-10 22:46:34 -08:00
Bill Kendrick
4049b6cbbc New magic tool: Pixels
Suitable for simple 'pixel art'.  Draws 8x8 pixel rectangles on
a grid across the canvas.

Sound effect created via a small Atari BASIC program sampled in
the open source 'Atari800' emulator (emulating the POKEY sound
chip), and trimmed in Audacity.
2021-01-06 23:02:11 -08:00
Pere Pujal i Carabantes
26870c38be Merge branch 'master' into sdl2.0 2020-12-12 00:39:52 +01:00
Pere Pujal i Carabantes
000658a154 Resaving blind, emboss, fretwork, halftone, mosaic, rails, tornado, tv, xor and zoom PNGs so they don't display all black when scaled. 2020-09-25 00:44:45 +02: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
2911b35a50 Elevate "Fill" from Magic Tool to real Tool
Replace the somewhat-recently-added "nothing" item in the tool bar
with the "Fill" tool, which has been converted back from a Magic tool
to a regular tool.

Also, change bash "==" to sh "=" in "if [ ... ]" tests in Makefile.

Also, link to math library (via "-lm") to make sure "max()" is available to
magic tools.

Also, add missing mention of "--newcolorslast" and "--newcolorsfirst" to manpage.
2019-09-12 23:04:13 -07: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
4d3ef642da Updating to master 2019/6/6 2019-06-06 20:22:55 +02:00
Bill Kendrick
cb8c885433 Ran indent on tp_magic_example.c
See https://sourceforge.net/p/tuxpaint/mailman/message/36077409/
from Oct. 2017 for more.
2019-04-13 12:13:28 -07:00
Pere Pujal i Carabantes
f4ee983dfb Merge 0.9.23 release into sdl2.0 2018-09-02 00:17:25 +02:00
Bill Kendrick
6633b40d7f New file-naming convention for magic docs
Anything non-A-to-Z (including spaces) convert to "_".
(Before, spaces were just eaten)
2018-08-30 02:14:43 -07:00
Bill Kendrick
762d02788d Working to regen magic tool docs 2018-08-30 02:11:56 -07:00
Bill Kendrick
e5d59e6f58 Moving magic docs (end user) into en subdir, too
Make "Makefile" that generates magic doc TXT files
from HTML work.
2018-08-30 01:33:04 -07:00
Bill Kendrick
ecfb336b5c Get magic docs HTML/TXT generator working
Needs "<?php" not "<?".
2018-08-30 01:31:36 -07:00
Bill Kendrick
232176025d Moved magic docs to 'en' subdir, so make works
Makefile for docs (used also by magic tool docs) expects
things to live in localized subdirectories now, so moved
things there.

Also, rebuilt README.txt (now en/README.txt) using the updated
README.html source.
2018-08-30 01:26:14 -07:00
Bill Kendrick
5f08467c83 Added new MODE_...'s to magic tool docs
Added documentation for "MODE_ONECLICK" and "MODE_PAINT_WITH_PREVIEW",
which were added to Tux Paint magic API 0x00000003 in Tux Paint 0.9.22)
to Tux Paint magic tool development docs.
2018-08-30 01:23:31 -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
b08e1f9ca0 Remade magic sounds that played too low compared on how they were playing in the SDL1.2 version of Tux Paint. 2017-12-06 06:39:41 +01:00
Pere Pujal i Carabantes
b6c191fec9 Regen of sounds, now they seem to play fine with SDL2. 2017-12-06 06:39:40 +01:00
Pere Pujal i Carabantes
d38b4abd68 Integrating android support. 2017-12-06 06:39:40 +01:00
Pere Pujal i Carabantes
35f7ebd482 Mosaic_shaped seems to work again with SDL2 (manually merged) 2017-12-06 06:39:39 +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
1bb6bbeef4 indent magic tool example code (tp_magic_example.c)
Sure, why not?  Running `indent` on "tp_magic_example.c" in the
Magic Tool development docs :-)
2017-10-15 11:52:51 -07:00
Bill Kendrick
4ab8280bbe indent xor.c 2017-10-15 11:51:27 -07:00
Bill Kendrick
5a88d476c8 indent waves.c 2017-10-15 11:51:22 -07:00
Bill Kendrick
cc7dd8e3c9 indent tv.c 2017-10-15 11:51:18 -07:00
Bill Kendrick
011f7f27c1 indent tornado.c 2017-10-15 11:51:13 -07:00
Bill Kendrick
cf3173690d indent toothpaste.c 2017-10-15 11:51:10 -07:00
Bill Kendrick
5871ef9b3a indent tint.c 2017-10-15 11:51:06 -07:00
Bill Kendrick
d311aeb236 indent string.c 2017-10-15 11:51:02 -07:00
Bill Kendrick
29b25992ad indent snow.c 2017-10-15 11:50:59 -07:00
Bill Kendrick
6071c06c06 indent smudge.c 2017-10-15 11:50:37 -07:00
Bill Kendrick
e6a81956de indent shift.c 2017-10-15 11:50:00 -07:00
Bill Kendrick
fee4c7ca44 indent sharpen.c 2017-10-15 11:49:48 -07:00
Bill Kendrick
ac74e0ed51 indent rosette.c 2017-10-15 11:49:41 -07:00
Bill Kendrick
fea1b424ba indent ripples.c 2017-10-15 11:49:34 -07:00