Commit graph

4358 commits

Author SHA1 Message Date
Bill Kendrick
29d7d28614 Bloom: Show progress bar while working 2023-02-07 01:27:11 -08:00
Bill Kendrick
7d8cefe6d7 Sync'ing docs to get "Bloom" magic tool 2023-02-07 01:14:42 -08:00
Bill Kendrick
f4b8032d18 Magic Bloom: Descriptions & icon 2023-02-07 01:02:24 -08:00
Bill Kendrick
948158c1fd WIP "Bloom" magic effect. Mend crash in "perspective.c" 2023-02-06 02:22:21 -08:00
Bill Kendrick
65da4f4df4 Moving "Rivulet" magic src to a WIP subdir
Not ready for production.
2023-02-05 19:50:24 -08:00
Bill Kendrick
89b6df98a4 Maze magic: Increase iteration limit
h/t Pere
2023-02-05 00:06:37 -08:00
dolphin6k
254fe65b20 Updated Japanese for new magic tools 2023-02-04 12:24:40 +09:00
Pere Pujal i Carabantes
851ff2c884 Updating Catalan. 2023-01-30 13:41:19 +01:00
Bill Kendrick
1687fd4de1 Magic Fur: Sound effect 2023-01-30 00:35:19 -08:00
Bill Kendrick
6161ebe59a Doc'ing Fur magic tool in CHANGES & AUTHORS
Also, moving to "Paint" group (the other two remain in "Distorts")
2023-01-29 22:18:59 -08:00
Bill Kendrick
034cbf5b5a Refresh POT/PO for Circles, Rays, Fur magic tools 2023-01-29 21:55:29 -08:00
Bill Kendrick
0d8c69160d Adding Magic Fur docs 2023-01-29 21:54:26 -08:00
Bill Kendrick
2f8f52917c WIP Fur magic tool
Needs changelog, docs, authors, sound effect, icon.
2023-01-29 21:16:12 -08:00
Bill Kendrick
2a7b00da49 Circles/Rays magic: correct one-off bug in description arrays 2023-01-29 00:54:29 -08:00
Bill Kendrick
e8cd0fd726 Maze magic: Amplify sound effect 2023-01-28 23:25:02 -08:00
Bill Kendrick
b9e5d59dad New magic tools: Circles, and Rays
Convert the image into circular or ray brushstrokes.

Inspired by "Night Sky Scene [Pen Parallax]" Scratch Project
by -HexaScape- <https://scratch.mit.edu/users/-HexaScape->

Sound effects based on Richard Wagner's "Ride of the Valkyries"
licensed as Creative Commons Attribution 3.0 Unported (CC BY 3.0)
by https://pmmusic.pro/; conducted by Philip Milman.

h/t my son William for pointing out the Scratch project
2023-01-28 23:12:28 -08:00
Bill Kendrick
7f93f243c1 Maze magic: ATTRIBUTE_UNUSED adjustments 2023-01-28 21:30:38 -08:00
dolphin6k
0f27735ce7 Updated Japanese translations 2023-01-28 14:48:45 +09:00
Bill Kendrick
29a2d148b2 Maze magic tool - sound effect 2023-01-26 21:57:56 -08:00
Bill Kendrick
49f70c60d8 Magic Maze: Icon 2023-01-26 01:08:22 -08:00
Bill Kendrick
c7b0c78fb9 Sync docs: Grab Magic API set_color() change 2023-01-25 02:25:43 -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
34de8311db Zoom/Perspective: Support background color changes
When in the middle of adjusting a drawing with Zoom or Perspective,
you could change the color.  However, the background would not
relfect this until you further adjusted the zoom/perspective.

Now, a color change causes the background to update immediately.

This involved updating the Tux Paint Magic API to send more
arguments to each Magic tool's "XYZ_set_color()" function,
which means a bump in the API version.

(Forthcoming, all other Magic tools will have their set_color()
functions updated.)
2023-01-25 02:12:57 -08:00
Bill Kendrick
5e829819aa WIP: Perspective & Zoom magic immediate color change support 2023-01-25 01:19:42 -08:00
Bill Kendrick
999e0c873e Maze magic: Got contiguous-or-not working right 2023-01-25 01:12:18 -08:00
Bill Kendrick
bf7e8897d6 Remove unfinished "Label" text on New or Open
Text from unfinished "Label" tool input would appear after
creating a New image or Opening an existing one.  Mended.
Closes https://sourceforge.net/p/tuxpaint/bugs/246/

Mostly by Pere.
2023-01-23 22:04:00 -08:00
Bill Kendrick
2e69c51bdb WIP: Maze: Allow multiple discontiguous zones 2023-01-23 02:48:56 -08:00
Pere Pujal i Carabantes
32dc277133 Updating Catalan 2023-01-21 23:44:31 +01:00
Bill Kendrick
dbb9157ca7 Doc'ing what's needed for current WIP Magic tools 2023-01-21 03:24:55 -08:00
Bill Kendrick
aa35d18927 Doc'ing new "Maze" magic tool 2023-01-21 03:23:18 -08:00
Bill Kendrick
3ba15f7b70 Update POT/PO after adding Maze magic tool strings 2023-01-21 03:06:00 -08:00
Bill Kendrick
c15b6a176c WIP: "Maze" magic tool 2023-01-21 03:05:24 -08:00
Bill Kendrick
a979ada66e Rivulet: Slight improvement to brush images
Still think I need to redesign how this works :/
2023-01-21 01:24:48 -08:00
Bill Kendrick
51c270b519 Avoid window larger than sole display size is capable of
If only one display is available, when running in windowed mode
and asking for Tux Paint to appear in a width and/or height larger
than the display's dimensions, Tux Paint will fall back to
the maximum(s) the display is capable of.

e.g., on my laptop with 1920x1080, running "tuxpaint --2048x2048"
will fall back to 1920x1080 (and display a warning to stdout).
However, if I have my external monitor (also 1920x1080) attached,
it will happily open a 2048x2048 window.  Not perfect, but an
improvement.

Closes https://sourceforge.net/p/tuxpaint/feature-requests/113/
2023-01-19 00:56:07 -08:00
Bill Kendrick
949438e2fb Bring back support for SDL_VIDEO_WINDOW_POS envvar
SDL1.2 supported "SDL_VIDEO_WINDOW_POS" environment variable,
but SDL2 does not; so reimplemented it ourselves. (See ENVARS docs.)
2023-01-19 00:18:52 -08:00
Bill Kendrick
d87497e168 Rivulet - More WIP 2023-01-17 01:09:08 -08:00
Bill Kendrick
bdbc8898ac POT/PO update after adding Rivulet magic 2023-01-16 17:28:51 -08:00
Bill Kendrick
2c03bdd8a4 Rivulet: More WIP 2023-01-16 17:28:21 -08:00
Bill Kendrick
1f8de8af83 Rivulet: More WIP 2023-01-16 17:06:49 -08:00
Bill Kendrick
7168fb94a5 Merge branch 'master' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint 2023-01-16 16:28:23 -08:00
Bill Kendrick
fc95baa98b WIP: Rivulet magic tool 2023-01-16 16:27:12 -08:00
Bill Kendrick
6a43019f85 WIP: Rivulet magic tool 2023-01-16 16:17:57 -08:00
Bill Kendrick
67e9928961 Googly Eyes: Also remove line draw callback 2023-01-16 16:07:07 -08:00
Bill Kendrick
df5fddad29 Googlyeyes: Remove unneeded function prototype
copypasta from lightning source
2023-01-16 15:52:24 -08:00
Bill Kendrick
b373ac8808 WIP - Crop whitespace from label text for better fit
For example, when using a font like OpenDyslexia which has a very
large line spacing, the text gets shrunk since the overall bitmap
is too big for the space on the buttons (compared to the contents).

Cropping the whitespace will allow the text to remain larger.

WIP - The method of cropping isn't great.  Text with descenders
appear higher than text without, causing terrible alignment.
So for now, the new `crop_surface()` code is not being used.

Also, replace some "#ifdef DEBUG printf(...) #endif" with
a simple "DEBUG_PRINTF(...)".  And other minor tweaks.
2023-01-11 01:56:11 -08:00
Bill Kendrick
65852f2534 Corrected 'keep aspect ration' option in zoom()
Scaling of button labels often caused them to stretch wider
than they should have.  (e.g., "tuxpaint --1024x768 --buttonsize=78")
2023-01-11 00:46:31 -08:00
Bill Kendrick
7279912af0 Drop 'trans' depencency for .mo files
Every time I ran `make`, it would re-build the .mo files!
2023-01-10 23:57:07 -08:00
Bill Kendrick
8df7650f82 Credit Bulgarian translation update 2023-01-07 01:22:29 -08:00
Vankata453
e37943abfe Update Bulgarian translation 2023-01-06 18:54:58 +02:00
Bill Kendrick
d132f96075 Changing default UI font to DejaVu Sans
Per discussion over in
https://sourceforge.net/p/tuxpaint/mailman/tuxpaint-devel/thread/CADZCvhDRn174fTc0e3K6Qxa8pHjXCvwmUr9p3frdzh7YksiS7A@mail.gmail.com/
2023-01-06 00:59:56 -08:00