Commit graph

2552 commits

Author SHA1 Message Date
Bill Kendrick
040884f3f3 Different description for Tile Zoom than plain Zoom
h/t Pere for the suggestion
2022-06-02 21:09:23 -07:00
Bill Kendrick
5369bca3b9 Merge branch 'master' into sdl2.0 2022-06-02 21:06:27 -07:00
Pere Pujal i Carabantes
f4977c31dc Updating Catalan translation. 2022-05-31 00:06:01 +02:00
Pere Pujal i Carabantes
78586144ab Updating Catalan translation. 2022-05-31 00:04:28 +02:00
dolphin6k
8babe0e4ee Updated Japanese translation 2022-05-28 18:06:07 +09:00
Bill Kendrick
8eeb860183 Show SDL version in --verbose-version output 2022-05-22 23:53:23 -07:00
Bill Kendrick
23cc59539c Show SDL version in --verbose-version output 2022-05-22 23:52:32 -07:00
Bill Kendrick
be1031efb2 Mend mis-find-replace of an OSK debug #define 2022-05-20 00:27:51 -07:00
Bill Kendrick
2b5b6132ab Backport OSK keyboard debug change to master
Allow for an "OSK_DEBUG" to be set, to show only debug
from `onscreen_keyboard.c`, and nowhere else.
2022-05-20 00:25:32 -07:00
Bill Kendrick
db7a5e171b Attempt to mend glitchiness of OSK on SDL2.0 branch
Composing is still messed up, however...
2022-05-20 00:23:01 -07:00
Bill Kendrick
e1fc4d60e7 Wrapping a printf in im.c in a debug #ifdef 2022-05-19 23:29:19 -07:00
Bill Kendrick
dcc699eea1 Merge SDL-agnostic way to declare callback func. for SDL_SetEventFilter() 2022-05-19 01:36:47 -07:00
Bill Kendrick
ff05e91f39 SDL-agnostic way to declare callback func. for SDL_SetEventFilter()
SDL 1.2 wants a "const SDL_Event *",
SDL 2.0 wants a "union SDL_Event *".
2022-05-19 01:34:19 -07:00
Bill Kendrick
166b6aa233 Mend bug in SDL agnostic SDL_TimerID check
Had 0 vs NULL swapped between SDL 1 & 2
2022-05-19 01:21:32 -07:00
Bill Kendrick
91a37acf1a Backport (and fix) SDL-agnostic SDL_TimerID check to SDL2.0 branch 2022-05-19 01:18:54 -07:00
Bill Kendrick
4a1d0cc846 SDL-agnostic way of handling SDL_TimerID diff
SDL 1.2 it's a pointer (so "NULL" is invalid),
SDL 2 it's an int (so "0" is invalid).
2022-05-19 01:13:24 -07:00
Bill Kendrick
c8db730c4f Backport a few warning squelches from sdl-2.0 branch
https://sourceforge.net/p/tuxpaint/tuxpaint/ci/dfba73d327df49cbea16207ab25c11991be2c0c7/
2022-05-19 01:05:19 -07:00
Bill Kendrick
dfba73d327 Address some compile-time warnings in SDL 2.0
Also disable VERBOSE DEBUG output.

Note - Still a pair of nasty warnings about the following

 * ‘rsvg_handle_close’ is deprecated: Use
   'rsvg_handle_read_stream_sync' instead

 * passing argument 3 of ‘autoscale_copy_smear_free’ from incompatible
   pointer type (SDL_BlitSurface)

They should be addressed.
2022-05-19 00:49:48 -07:00
Bill Kendrick
a6f5449ce4 Backport sdl-2.0 prompt shadow fix to master 2022-05-18 23:42:13 -07:00
Bill Kendrick
ed7184bd64 Avoid leftover shadow on Open->Erase prompt
Fixes https://sourceforge.net/p/tuxpaint/bugs/248/

(Seemed to do with alpha of the new `backup` surface?
I admit I don't 100% understand what was going on.)
2022-05-18 23:37:23 -07:00
Bill Kendrick
d3d2ecde1a Portuguese translation update
h/t Hugo
2022-05-18 00:00:56 -07:00
Pere Pujal i Carabantes
99eb47a72e Merge branch 'master' into sdl2.0 2022-05-17 00:30:17 +02:00
Bill Kendrick
932c86b8dc "reversort"; make sure Slideshow starts at the _top_
...since that will be where the newest images are.
2022-05-16 00:05:57 -07:00
Bill Kendrick
b2225a62f5 WIP Reverse sorting in Open & Slideshows dialog
...via --reversesort option.  WIP; need docs updated.
(Also need Tux Paint Config. changes, but that's another repo)
2022-05-15 23:56:53 -07:00
Bill Kendrick
27ec817973 The "Slideshow" begins by showing most recent images
...rather than the oldest.  (i.e., defaults to being scrolled
to the very bottom now, rather than the very top)
2022-05-15 23:39:28 -07:00
Pere Pujal i Carabantes
956292e122 Merge branch 'master' into sdl2.0 2022-05-14 19:41:24 +02:00
Bill Kendrick
ea7f88ab92 POT/PO update 2022-05-07 18:15:12 -07:00
Bill Kendrick
e9001c9fac Move where paperinit() is called
h/t to upstream developer of libpaper!
(https://sourceforge.net/p/tuxpaint/bugs/250/)
2022-04-29 18:16:27 -07:00
Pere Pujal i Carabantes
bf73b3679b Merge work in autoscroll from 'master' into sdl2.0 2022-04-26 00:25:29 +02:00
Bill Kendrick
cc6cf1ebcc Remedy bug in Apply Label feature w/ Enter key
Should correct bug https://sourceforge.net/p/tuxpaint/bugs/249/
h/t Shin-ichi
2022-04-22 18:16:55 -07:00
dolphin6k
b6aab66898 Updated Japanese translations. 2022-04-22 15:57:57 +09:00
Bill Kendrick
8fac8476f4 Open dialog scroll buttons auto-repeat now
Had an unwanted SDL_RemoveTimer call in a dumb place. :/
2022-04-18 23:31:08 -07:00
Bill Kendrick
0aab76291b Remove some debugging printfs
...HOWEVER, the auto-repeat of scroll buttons in the Open dialog
do not seem to work, despite the code being identical to what
I just added to New and Slideshow...!?
2022-04-18 22:09:28 -07:00
Bill Kendrick
da201ecfe8 Formatting clean-up 2022-04-18 22:07:34 -07:00
Bill Kendrick
206ca7cee2 Slideshow dialog scroll buttons auto-repeat 2022-04-18 22:03:54 -07:00
Bill Kendrick
10e121bd0f New dialog scroll buttons auto-repeat 2022-04-18 21:55:17 -07:00
dolphin6k
98fb5c2aee Corrected "#ifdef WIN32" for tmpstr/wtmpstr 2022-04-13 21:26:28 +09:00
dolphin6k
6a5eddac15 Fixed crash when loading label with whitespace only. 2022-04-12 22:06:49 +09:00
Bill Kendrick
ec4f0a07b1 WIP Open dialog auto-repeat scrolling
Not actually working; not sure why timer isn't firing!?
2022-04-08 01:53:40 -07:00
Bill Kendrick
9b4257b61c WIP Starting work on autorepeat scroll in New/Open dialogs
For https://sourceforge.net/p/tuxpaint/feature-requests/173/
2022-04-07 02:28:14 -07:00
Bill Kendrick
fb596fb887 Avoid crash on unexpected "saved dimensions" loading Labels 2022-04-06 01:32:21 -07:00
Bill Kendrick
7db784ce88 Tools' scroll buttons auto-repeat
The "Tools" section's up & down scroll buttons auto-repeat if
you click/tap and hold them.

For https://sourceforge.net/p/tuxpaint/feature-requests/173/
(Still to-do: The buttons in the Open & New dialogs.)
2022-04-02 21:15:35 -07:00
Bill Kendrick
565da81071 Remove a leftover debug printf 2022-04-02 20:53:18 -07:00
Bill Kendrick
347a9b5cc8 Sanity checks in load_info_about_label_surface()
Avoid crashes when coming across unexpected Label data stored within
a saved PNG image.
(h/t Donny Sianipar for the report & sample image)
2022-04-02 17:29:22 -07:00
Bill Kendrick
b897e47cc2 parse.gperf: make memcpy() call happy
Hopefully this doesn't break anything; I'm struggling to
understand how this stuff works.
2022-03-22 21:24:49 -07:00
Pere Pujal i Carabantes
ad6bf2ec83 Merge branch 'master' into sdl2.0 2022-03-17 20:22:04 +01:00
Bill Kendrick
b95bb10768 Refresh PO after tweaking color picker descr. 2022-03-17 01:29:23 -07:00
Bill Kendrick
c4ac0c9487 Tweak description of HSV rainbow color picker 2022-03-17 01:28:17 -07:00
Bill Kendrick
7856e7af6c Avoid color picker crosshairs blitting outside zones 2022-03-17 01:09:50 -07:00
Bill Kendrick
b568bf86d2 Color picker: Eat motion events to avoid over-rendering
...when spamming the event queue with motion events over the
value slider, while Tux Paint is busy re-rendering the
rainbow palette at the new Value level.

Also, convert a printf() in the new color picker crosshair sizing
function to DEBUG_PRINTF().
2022-03-17 00:54:49 -07:00