Bill Kendrick
e984f23b5f
Line: Never say "360 degrees" (say "0")
...
h/t Karl
Closes https://sourceforge.net/p/tuxpaint/bugs/255/
2022-07-03 16:09:48 -07:00
Mark Kim
98198591b5
macOS: move deleted file to Trash
...
As opposed to permanently deleting it. As requested:
https://sourceforge.net/p/tuxpaint/feature-requests/148/
2022-07-02 22:03:41 -04:00
Bill Kendrick
1068a33167
Mended Color Mixer random color bug
...
If you set a color, then come back to Color Mixer and immediately
dismiss the dialog (without setting a color), an indeterminate
color could appear due to uninitialized variables (new_r, _g, _b).
Closes https://sourceforge.net/p/tuxpaint/bugs/251/
h/t @kentonyanamin on Twitter
2022-06-14 01:14:39 -07:00
Bill Kendrick
cdba8ffbbd
Adding an auto option for button sizes
...
Merge 333f4b05a4 sdl2.0->master
(See https://sourceforge.net/p/tuxpaint/feature-requests/218/ )
2022-06-14 00:14:02 -07:00
Bill Kendrick
a3f915be1c
Happy 20th Anniversary!
2022-06-04 00:06:00 -07:00
Bill Kendrick
23cc59539c
Show SDL version in --verbose-version output
2022-05-22 23:52:32 -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
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
a6f5449ce4
Backport sdl-2.0 prompt shadow fix to master
2022-05-18 23:42:13 -07: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
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
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
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
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
Bill Kendrick
1b9933b7c2
More appropriately-sized crosshairs on color picker
...
The corsshairs on the rainbow palette color picker are larger
(by default), and scale up or down based on the UI size
(--buttonsize setting).
2022-03-17 00:36:40 -07:00
Bill Kendrick
8aeb022849
tuxpaint.c: replace some tabs with spaces
2022-03-16 00:38:37 -07:00
Bill Kendrick
491862d2da
Color picker: Value slider: Interact on hover motion
2022-03-16 00:33:25 -07:00
Bill Kendrick
adec3666f0
Color picker -> Back; don't 'forget' old crosshair positions
2022-03-02 01:38:04 -08:00
Bill Kendrick
0c858122b5
Color picker now offers full HSV selection
...
Added a slider to choose value, which re-renders the rainbow-colored
box on the left (which now only displays hue/saturation).
2022-03-02 01:30:36 -08:00
Bill Kendrick
6e98230a33
Ensure color mixer works in New dialog
...
and sync README docs to capture that it, and rainbow palette,
may be used.
2022-02-23 23:22:59 -08:00
Bill Kendrick
697253a4bd
Fixed label position/render bug when selecting via keyboard
...
Bugfix: Positioning and rendering of labels selected for editing
via [Tab] cycling & the [Enter] key now works as expected.
2022-02-22 00:33:51 -08:00
Bill Kendrick
380e5455f9
Label->Apply->final label: Update screen correctly
2022-02-22 00:00:22 -08:00
Bill Kendrick
3e385f6a68
More work on Label apply feature
...
h/t Pere for adding the missing pieces.
WIP b/c there's one minor side effect that needs addressing
(final label, highlighted red, does not lose its highlight)
2022-02-21 23:23:32 -08:00
Pere Pujal i Carabantes
b62a5f1094
Less flickering when selecting a label.
...
If you selected a label and the cursor was in another place, the label was displayed flashy in that another place.
2022-02-21 00:50:16 +01:00
Bill Kendrick
5c2bcd44a2
OSK: Reposition if cursor overlap zone via [Enter]
...
Onscreen keyboard repositions itself to the top if you use [Enter]
to move the cursor down, and it begins overlapping the keyboard.
Also, play "carriage return" sound effect, even when entering
a blank 'line' of text.
2022-02-17 22:19:57 -08:00
Mark Kim
c126eb92b5
macOS fix for backspace in text/label tools in some languages
...
Fixed the issue with the backspace not working in text and label tools
when in certain language modes in macOS. Mac keyboards have the DELETE
key where PC keyboards have the BACKSPACE key, and the two keys have
different keycodes, so the backspace requires special handling on the
macOS in programs writtens for the PC.
2022-02-13 17:16:12 -05:00
dolphin6k
3d4dd494b5
WIN32: Use WideCharToMultiByte() insted of iconv() for label embeddiing.
2022-02-13 18:51:08 +09:00
dolphin6k
f4cc875861
Finally fixed space bug with labels on windows correctly
2022-02-12 10:20:18 +09:00
dolphin6k
599e616d13
Fixed space bug with labels also on windows.
2022-02-11 23:26:58 +09:00
Bill Kendrick
851f5ffbb7
Win32, loading Label text from drawings: Avoid leak
...
Avoid leaking memory when loading Label text strings from a saved drawing.
Also, a heck of a lot of comments to explain (as best I understand)
what load_info_about_label_surface() is doing.
2022-02-11 01:18:51 -08:00
dolphin6k
907c739679
Removed mtw() for windows.
...
Instead, defined windows native functions for mbstowcs()/wcstombs().
2022-02-11 09:40:59 +09:00
dolphin6k
7305768d38
Revert "Removed "#ifdef WIN32" block around label embedding."
...
This reverts commit c0da1f0e94 .
2022-02-11 08:52:37 +09:00