Commit graph

1428 commits

Author SHA1 Message Date
Bill Kendrick
813978d9ef Template export is wrapped up
Tux Paint Config. has an option to disable/enable.
Closing https://sourceforge.net/p/tuxpaint/feature-requests/236/
2023-05-29 12:31:43 -07:00
Bill Kendrick
65378f6fdd Ability to disable Template creation from Open dialog 2023-05-29 10:50:55 -07:00
Bill Kendrick
9ab7fdba13 Ensure trans dir exists when making .mo files
Helps get `make clean && make -j` (parallel build) to work.
h/t bkw @ slackbuilds
2023-05-28 11:15:54 -07:00
Bill Kendrick
33394f397b Template export: test image dimensions & file CRC
Final couple of tests to let us avoid creating a template that's
identical to one that already exists.  All told, we test the
following (and the first thing that matches causes us to stop
testing that template, and move on to the next, as it appears
to not be identical to the saved image, in its current state)

 + filename prefix (based on saved image's filename)
 + file size
 + image dimensions
 + image contents (via CRC)
2023-05-27 15:40:30 -07:00
Bill Kendrick
e578de2c6b Template export: Test file sizes, too
Avoid exporting a saved picture to a new template if one already
exists with both the same filename prefix, and now also identical
file sizes (in bytes).

Bugfix - The export function was always dumping chunks that
were the size of the input buffer, which means the final chunk
(which will frequently be smaller) will contain garbage data
beyond the end.
2023-05-27 14:17:48 -07:00
Bill Kendrick
785401d68e WIP Disallow creation of duplicate templates...
...based on saved files.  So far, only looking for identical
template prefix (which is based on the save file's filename).

Next will be to check other fingerprints, in case the saved file
changed after an earlier template was created.
2023-05-27 13:09:05 -07:00
Bill Kendrick
c359216180 Doc'ing the templates|starters datadir .thumbs bugfix 2023-05-27 11:59:58 -07:00
Bill Kendrick
7b6f04ac1d Problem loading templates from overridden 'datadir'
When specifying "datadir", Tux Paint's "New" dialog
was able to present templates found in that directory,
but would attempt to load from whatever the user's
"savedir" was, instead.

h/t Giancarlo Orru for reporting the bug.
2023-05-27 11:51:03 -07:00
Bill Kendrick
955c39c053 WIP Ability to copy saved drawing into a new template
https://sourceforge.net/p/tuxpaint/feature-requests/236/
2023-05-25 23:20:32 -07:00
Bill Kendrick
e9b04a8759 Squiggles Magic tool icon 2023-05-23 00:41:57 -07:00
Bill Kendrick
f49f9f31ba Loops Magic tool icon 2023-05-23 00:40:17 -07:00
Bill Kendrick
ab53612d50 Ribbon Magic tool sound effect
CC-BY 3.0 by https://freesound.org/people/CosmicEmbers/
2023-05-23 00:37:12 -07:00
Bill Kendrick
375207f3d3 Smooth magic tool sound effect
CC-BY 4.0 by https://freesound.org/people/PercyFrench/
2023-05-22 23:56:41 -07:00
Bill Kendrick
5e24fb3742 Squiggles magic tool sound
CC0 by https://freesound.org/people/Tomoyo%20Ichijouji/
2023-05-22 23:46:53 -07:00
Bill Kendrick
da02bf19bf Loops magic tool sound
https://freesound.org/people/Jagadamba/sounds/254397/
CC-BY 4.0 https://freesound.org/people/Jagadamba/
2023-05-22 23:43:28 -07:00
Bill Kendrick
313555f6a1 Wrapped up initial stab at fuzzy erasers 2023-05-22 23:02:31 -07:00
Bill Kendrick
065060de03 More work on fuzzy eraser; better behavior w/ Ctrl-Z & -R 2023-05-22 22:24:47 -07:00
Bill Kendrick
d31bc814e6 WIP - Fuzzy erasers
Also, mend scroll button / interaction bug in Eraser selector.
2023-05-22 00:33:52 -07:00
Bill Kendrick
644176874c Bring ribbon.c & smooth.c out of WIP; add new tools...
...squiggly lines and loop-the-loops.
2023-05-22 00:10:58 -07:00
Bill Kendrick
d8f3adc2e7 Bump version to 0.9.31; credit new Russian translator
h/t Olesya
2023-05-20 11:22:45 -07:00
Bill Kendrick
94153b75d3 Remove -rc1, sync docs / get updated doc dates 2023-05-18 18:27:02 -07:00
Bill Kendrick
b9305f2ceb Mending misbehavior in Cartoon magic tool
h/t @Miyagi_Andel on Twitter for the bug report
2023-05-16 16:58:44 -07:00
Bill Kendrick
2d99a823f2 fix location for tuxpaint.cfg on Haiku
Unclear why when I `git pull` in master, I'm not seeing
https://sourceforge.net/p/tuxpaint/tuxpaint/ci/b48cb438239e47ebce3c6b84f5aff2d7d906d3ba/
so just replicating it (plus adding entry to docs/CHANGES.txt).
2023-05-12 00:19:22 -07:00
Bill Kendrick
8e9a51d478 Define & use NUM_ERASER_SIZES
...everywhere "NUM_ERASERS / 2" was being used
2023-05-10 23:20:05 -07:00
Bill Kendrick
ab722453e8 Sync docs after quickstart (magic sizes) & date bumps 2023-05-09 23:53:32 -07:00
Bill Kendrick
f8358530ff Tweaking "Light" effect 2023-05-08 21:49:59 -07:00
Bill Kendrick
fcb392aec3 Re-sync docs to get updated INSTALL (Haiku + more) 2023-05-07 01:06:36 -07:00
Bill Kendrick
c22a328a4e Final Magic tool example screenshots ("Artistic" group) 2023-05-05 00:29:27 -07:00
Bill Kendrick
3f5bc2b554 thumbnail2() - ceil() the new_x & new_y calculations
I noticed that buttonsize=90 or =91 would end up with UI buttons
images ere one pixel smaller (89x89 or 90x90, respectively) than
expected, hence they layout would end up with one row and one
column of unused pixels between them.  Any button content (e.g.
stamp thumbnails) that might render into the full size would end
up leaving garbage pixels behind.

Applying ceil() to the new_x and new_y (but then making sure they do
not exceed the requested max_x and max_y) calculated sizes inside the
thumbnail2() function.  (We do not simply use max_x and max_y directly,
because we are usually trying to maintain the original image's aspect
ratio.)
2023-05-04 23:29:39 -07:00
Bill Kendrick
aa2235c8ba Reduce max button size; account for new stamp control row
...for rotation button added in 0.9.29
2023-05-04 22:43:59 -07:00
Bill Kendrick
de7b8dd51b After Ctrl+click pipette, color selector showed old color
Was redrawing color toolbar _before_ changing the chosen color
to be the pipette tool.

Reproducing the bug - Select a built-in color, Ctrl+click in the canvas,
observe built-in color still appears chosen [the bug], paint with e.g.,
paint brush, observe it's using the correct, pipette-selected color,
not the one that appears chosen [this is correct].
2023-05-03 10:11:56 -07:00
Bill Kendrick
8123ad03ed Doc'ing the WIP Magic tool doc screenshot update 2023-05-03 00:00:40 -07:00
Bill Kendrick
d6940cc8b8 New Magic tool: Rainbow Cycle
Changes colors each time you use it (similar to Rainbow and
Smooth Rainbow, but only changes between strokes).
2023-05-02 00:01:05 -07:00
Bill Kendrick
fa9a0c5955 Blind: Drop fullscreen mode
h/t Pere
2023-04-30 22:58:45 -07:00
Bill Kendrick
cef773a694 Now REQUIRING SDL2_Pango; no NO_SDLPANGO option
Motivation - Without SDL2_Pango, languages like Japanese,
Arabic, and Thai do not render properly.  Currently, Debian
(and hence Ubuntu) do not have SDL2_Pango, so Tux Paint 0.9.28
is adversely affected.  Fedora DOES have SDL2_Pango, so works well.
This also allows us to delete a lot of ancient cruft code.

Closes https://sourceforge.net/p/tuxpaint/bugs/268/
h/t Pere

(INSTALL docs to be updated momentarily)
2023-04-30 16:10:29 -07:00
Bill Kendrick
1ee0af18f7 Doc'ing Japanese translation update 2023-04-30 00:27:37 -07:00
Bill Kendrick
378b2acca6 Accept SDL_VIDEO_WINDOW_POS in --fullscreen too
This seems to allow me to specify which display (monitor) to make
Tux Paint appear on my two-monitor set-up (laptop + external monitor)!

Closes https://sourceforge.net/p/tuxpaint/bugs/277/
2023-04-28 00:13:32 -07:00
Bill Kendrick
3d1efe8661 Doc'ing Shaped Mosaic tweak 2023-04-27 23:54:12 -07:00
Bill Kendrick
89a46feb58 More starters avoid smearing 2023-04-26 22:53:57 -07:00
Bill Kendrick
18f9cad6fe Adding "indent.sh" to re-indent code; ran it!!! 2023-04-23 23:26:00 -07:00
Bill Kendrick
966d840126 Block, Chalk, Drip: Support sizes (really, intensity) 2023-04-23 17:02:26 -07:00
Bill Kendrick
7ab630c914 Smudge & Wet Paint: Support sizes 2023-04-23 16:37:52 -07:00
Bill Kendrick
a1d3202754 Wrap up Flower size support; new flower_base.png 2023-04-23 15:45:18 -07:00
Bill Kendrick
c448f090c5 WIP - Flower: Support sizes
Stalk color not matching leaf & base is more obvious at larger sizes.
Base, petals, and leaf bitmaps need to be drawn (just scaled up, and
made blurry, for the moment).
2023-04-23 12:35:07 -07:00
Bill Kendrick
1f6f7bb746 Rain: Support sizes 2023-04-23 11:56:12 -07:00
Bill Kendrick
44bb340e33 Fisheye: Support sizes 2023-04-22 12:24:47 -07:00
Bill Kendrick
d4db61b084 Xor Colors: Support sizes 2023-04-22 12:16:49 -07:00
Bill Kendrick
b85e47cf60 New "TV (Bright)" variation of "TV" Magic tool 2023-04-22 12:13:12 -07:00
Bill Kendrick
9003d15717 TV: Support sizes 2023-04-22 11:52:20 -07:00
Bill Kendrick
47fc7c71bd "Tint" and "Color & White": Support sizes 2023-04-22 11:47:41 -07:00