Commit graph

2792 commits

Author SHA1 Message Date
Mark Kim
3849480fd4 Pango loads Tux Paint-supplied fonts on macOS.
Previously Pango loaded system-supplied fonts instead, which could lead
to fonts not rendering in a human-readable text.  This change fixes
https://sourceforge.net/p/tuxpaint/bugs/265/
2022-12-02 22:57:38 -05:00
dolphin6k
7a630264cb Addressed a compile-time warning on windows. 2022-11-18 16:08:07 +09:00
dolphin6k
e9a0d7aaf5 Removed warning regarding fribidi_log2vis(). 2022-11-18 14:16:23 +09:00
dolphin6k
f3d177621b Corrected compile-time error on old platforms (ex: RHEL7) 2022-11-18 12:10:35 +09:00
Bill Kendrick
9d70b5837c WIP: Cleaned up some compile-time warnings...
...that cropped up in SDL2 branch.
2022-11-14 23:21:45 -08:00
Bill Kendrick
a530896e20 Squelch a debug output
s/printf(...)/DEBUG_PRINTF(...)/
2022-11-14 22:55:09 -08:00
Jacques Chion
88e4563e68 fixing one mistake 2022-11-02 09:54:38 +01:00
Bill Kendrick
16839df8ba Brush spacing improvements
Each brush's initial spacing (calculated, or loaded
from .dat file) is recorded.  When the spacing UI
is used to select a close, but not-precisely-the-same,
spacing option, the default is chosen ("nudged" to it).

h/t Pere for pointing this out (e.g., "aa_round_seethru_05.png")

Also, meter's lowest value has a sliver dark blue.
2022-10-25 00:36:58 -07:00
Bill Kendrick
322780d735 Regen POT & PO in tuxpaint
First time in a while. Appears indentation has caused some
comments to be lost.  Need to sort that out :-/

e.g.

  // Description of an octagon
  gettext_noop("An octagon has eight equal sides."),
  gettext_noop("An octagon has eight equal sides."),

still works, but

  // Description of a rhombus
  gettext_noop
    ("A rhombus has four equal sides, and opposite sides are parallel."),
  gettext_noop
    ("A rhombus has four equal sides, and opposite sides are parallel."),

has lost the comment in the POT & PO files. >:-(
2022-10-18 01:30:10 -07:00
Bill Kendrick
3160b07a3c Punjabi translation update 2022-10-14 00:25:01 -07:00
Jacques Chion
2e92f91ece Translation Lightning is better now, without accent 2022-10-11 11:04:13 +02:00
Jacques Chion
93377bff8b Translation of lightning was bad, perhaps with the lettre E with accent 2022-10-11 09:56:44 +02:00
Bill Kendrick
9f887944f5 Portuguese l10n update
h/t Hugo
2022-10-07 02:26:44 -07:00
Bill Kendrick
632459087e Better performance from "Rush" (by using SDL_gfx rotozoom)
Applying patch from Pere.  ALSO, bumping Tux Paint Magic Tool API version.
2022-10-03 22:50:40 -07:00
Mark Kim
371d9cdbd8 stop quick eraser when the mouse button is released
Ensure quick eraser stops when the mouse button is released even when
SDL events continue to trigger.
2022-09-29 18:49:50 -04:00
Bill Kendrick
9be4fa529f [X] instead of [Del] for eraser quick access
Apple keyboards have only a "Delete" key (which acts as Backspace),
so contortions with Fn key required to access the keysym I was
using for eraser quick access.  h/t Mark Kim for pointing it out.

Because of this use of a printable glyph key, and to solve the
issue of on screen keyboard and in-progress text input getting
clobbered while accessing eraser, preventing access to the
quick eraser when either Text or Label tool are selected.
2022-09-28 22:00:29 -07:00
Jacques Chion
ef1cf295b8 fixing typo 2022-09-28 14:13:51 +02:00
Bill Kendrick
6e9dd5ee4c Add --buttonsize=48 and =auto to bash completion file 2022-09-28 01:54:12 -07:00
Bill Kendrick
e3570eb707 List avail "--joystick-btn-..." commands in --help output 2022-09-28 01:52:16 -07:00
Bill Kendrick
7a780c2f6b Add "--buttonsize=auto" to --help usage output 2022-09-28 01:47:50 -07:00
Bill Kendrick
f02459af87 [Del] quick eraser: avoid conflict; record undo buffer 2022-09-28 01:17:08 -07:00
Bill Kendrick
65d1c087d6 [Del] key to quickly access a small eraser
A keyboard shortcut is now available for quickly accessing
a small eraser.  Hold the [Del] key while clicking, and drag
around the picture to erase.  Release the key and/or mouse to
return to normal operation.

(Eventually, this could be utilized when we can support
the recognition of a drawing tablet stylus' "eraser" tip;
see https://sourceforge.net/p/tuxpaint/feature-requests/8/)
2022-09-28 01:00:28 -07:00
Pere Pujal i Carabantes
88bee260e6 Updating Catalan. 2022-09-20 00:54:33 +02:00
Bill Kendrick
28492255cb Sync fr.po from master 2022-09-17 00:43:46 -07:00
Bill Kendrick
9edb6effa6 Set SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH 2022-09-15 00:39:58 -07: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
Bill Kendrick
09f332367f Mend bug where Ctrl+click pipette got stuck drawing 2022-09-14 23:41:48 -07:00
Bill Kendrick
93930fb00a Icelandic translation update
h/t Sveinn í Felli
2022-09-14 23:26:58 -07:00
Bill Kendrick
a466fce43a --verbose-version: Show whether SDL2_Pango is used 2022-09-14 15:25:38 -07:00
Bill Kendrick
818bcc5e81 Pulling fr.po in from master
Sync https://sourceforge.net/p/tuxpaint/tuxpaint-config/ci/3813bb284e61db71290ddad6b1ab9bd017c63382/
into sdl2.0 branch.

h/t Jacques
2022-09-13 12:14:15 -07:00
Pere Pujal i Carabantes
82676e3fb1 Stamp XORs behaving better with CTRL-key commands, still not finished. 2022-09-12 02:00:28 +02:00
Bill Kendrick
eaba5e94f4 Stamps -> Rotation: Better mouse warping
Stamp width needed to be cut in half, since stamp's _center_ is
at the click (old_x) position.  Also, avoid warping outside of the
canvas.
2022-09-11 11:05:01 -07:00
Pere Pujal i Carabantes
cc28f48f7e Fixing stale XOR left when rotating then click on another stamp image before finish rotation. Also counting button size when warping mouse. 2022-09-11 14:41:40 +02:00
Pere Pujal i Carabantes
1a1a4bb50b Speed up stamp rotation XOR rendering. Freeing surface previously left unfreed. 2022-09-11 11:04:54 +02:00
Mark Kim
6fa7ac8dcc Update korean translation
* Also updated my email elsewhere in the docs.
2022-09-10 07:24:47 -04:00
Bill Kendrick
b37824942c Initial commit of check_translations_warnings.txt 2022-09-09 01:57:38 -07:00
Bill Kendrick
cb7024ddac Script to collect warnings from "check_translations.sh"
So we can commit it, for quick examination & later reference.
2022-09-09 01:30:42 -07:00
Bill Kendrick
e8241d5b6a Portuguese translation update
h/t Hugo Carvalho
2022-09-09 01:21:02 -07:00
Bill Kendrick
5ce47ef928 LINGUAS: 'pt' above 'pt_BR'
Closes https://sourceforge.net/p/tuxpaint/bugs/260/
h/t Hugo Carvalho
2022-09-09 01:15:44 -07:00
Bill Kendrick
bd07489702 check_translations.sh; easier life, and check LINGUAS
Updated `src/po/check_translations.sh` sanity-checking script
to check `src/po/LINGUAS` file.  Also, OPTION docs (and
Tux Paint Config. source) updated to make the script's job easier.
2022-09-09 00:59:49 -07:00
dolphin6k
9565560ef5 Updated Japanese translations 2022-09-08 12:01:26 +09:00
Bill Kendrick
4141d98785 Adding Stamps rotation options to Bash completion 2022-09-05 00:50:05 -07:00
Bill Kendrick
3e9ac55c91 POT/PO update to capture Stamps rotation UI text 2022-09-05 00:48:56 -07:00
Bill Kendrick
9c25b2fda5 Stamp rotation on by default 2022-09-05 00:42:03 -07:00
Bill Kendrick
270f5353e0 Mend drop-shadows on prompts
...they were not rendering the way we were doing it in the sdl2.0
branch.
2022-09-05 00:04:52 -07:00
Bill Kendrick
53c1c5e995 Create "canvas" as 24-bit all the time
Previously was having it match the display's ("screen"'s) depth
and masks, but this apparently causes artifacts under SDL2.
Closes https://sourceforge.net/p/tuxpaint/bugs/259/
2022-09-04 01:33:36 -07:00
Bill Kendrick
c171500d5e Stamp rotation - Warp mouse to the right, at start
...this ensures that any immediate mouse movement at the
beginning of the rotation process will affect the angle only
slightly.  (As opposed to leaving it in the center of the
stamped shape; moving slightly left would rotate the shape
~180 degrees immediately, for example).

Also, updated date in CHANGES and src/tuxpaint.c, added
new feature to CHANGES, and credited Pere.  (Great work!!!)
2022-09-02 02:05:52 -07:00
Pere Pujal i Carabantes
a433b4c79c Adding stamp rotation. The xor interface seems to work fine if only the mouse is used, still need to adapt it to shortcut key combos. 2022-09-02 02:11:43 +02:00
Pere Pujal i Carabantes
73c1cabac1 Android fix for magic tools under 64 bits devices by Terrence Sheflin, see 345d3cc78a 2022-07-20 23:38:04 +02:00
Bill Kendrick
445fcbb8bf Merge branch 'master' into sdl2.0 2022-07-07 17:55:27 -07:00