Commit graph

4336 commits

Author SHA1 Message Date
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
Bill Kendrick
71ee416210 README: Bump date
It's 2023!
2023-01-04 21:51:23 -08:00
dolphin6k
bea8ba8111 Updated Japanese translations 2023-01-04 18:41:34 +09:00
Bill Kendrick
35dbd40bf6 Disallow Ctrl-Z in certain situations
Closes https://sourceforge.net/p/tuxpaint/bugs/239/
2023-01-03 22:30:45 -08:00
Bill Kendrick
7ecd0ab075 Crediting Philipp Rösner for make --shuffle help 2023-01-02 22:00:29 -08:00
Bill Kendrick
ff10b021b7 Googly Eyes: Forgot to gettext() the sizes
h/t Pere
2023-01-02 12:00:44 -08:00
Bill Kendrick
798ac772c2 Sync docs; catch new 2023-01-02 date 2023-01-02 11:58:49 -08:00
Bill Kendrick
42cf1f532c Makefile: Remove rogue 'k'; update date 2023-01-02 11:47:00 -08:00
b'William Kendrick
cbc9bcbb97 Merge /u/rndxelement/tuxpaint/ branch master into master
https://sourceforge.net/p/tuxpaint/tuxpaint/merge-requests/15/
2023-01-02 19:38:22 +00:00
Pere Pujal i Carabantes
eeb5eee443 Updating Catalan. 2022-12-29 23:29:10 +01:00
dolphin6k
7d8125a866 Updated Japanese translations 2022-12-29 15:08:05 +09:00
Bill Kendrick
7a1c90031c Disabling anniversary confetti animation on title screen 2022-12-28 21:03:39 -08:00
Bill Kendrick
866c5f6483 Adding Google Eyes sound effect
Updating credits & changelog, too.
2022-12-24 12:33:52 -08:00
Bill Kendrick
105b6958c5 Keep Googly Eyes x & y >= 0 2022-12-24 12:19:55 -08:00
Bill Kendrick
4129a8753e Googlyeyes WIP: Constrain pupil within background 2022-12-24 11:59:42 -08:00
Bill Kendrick
16d4700066 Merge branch 'master' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint 2022-12-24 11:48:54 -08:00
Bill Kendrick
9674a05e63 Continued WIP: Googly Eyes
Needs sound effect, an icon, and boundary-limiting to keep the
pupil inside the background.
2022-12-24 11:47:35 -08:00
Bill Kendrick
6a2dc52e7d Continued WIP: Googly Eyes
Needs sound effect, an icon, and boundary-limiting to keep the
pupil inside the background.
2022-12-24 11:33:11 -08:00
Bill Kendrick
b4f63f17ff POT/PO rebuild & RELEASE change re: appdata file
(org.tuxpaint.Tuxpaint.appdata.xml.in)
2022-12-24 11:16:30 -08:00
Bill Kendrick
c13c6e1dcb Fill: Paint & Radial; bounds check for touched[]
Avoid reading outside of the bounds of the `touched[]` array,
to help prevent crashes.

h/t Miyagi Andel for reporting,
Shin-ichi TOYAMA for pinpointing the issue,
and Pere Pujal i Carabantes for providing a solution

Closes https://sourceforge.net/p/tuxpaint/bugs/269
2022-12-23 00:08:52 -08:00
dolphin6k
2c6c50205c Added 'yen' to the spare string for font scoring.
Also made unneccessary translations blank for unused scoring strings.
2022-12-22 23:07:48 +09:00
Philipp Rösner
33d94454a8
Add support for --shuffle GNU make flag
Add missing dependecies without which build
failures occur while using the --shuffle flag for GNU make.
2022-12-21 23:53:46 +01:00
Bill Kendrick
440d2f369a Googly Eyes imagery; doc'd "<N>spare-Nx" font scorer 2022-12-21 02:08:37 -08:00