Commit graph

1132 commits

Author SHA1 Message Date
Bill Kendrick
f46df76736 Clean up comment formatting re: UTF-8 stuff 2021-11-03 21:28:03 -07:00
dolphin6k
6145fb8bc2 Addressed some compile time warnings. 2021-11-03 22:04:24 +09:00
dolphin6k
2a6b55e3c2 "Move to recycle bin" for Windows is now ready for the tests. 2021-10-31 17:18:16 +09:00
dolphin6k
b667aa7d79 win32_trash() is still quite unstable. 2021-10-31 02:34:24 +09:00
Bill Kendrick
022e7cd4eb Remove FIXME re: Windows trash support
...since Shin-ichi is adding it :)
2021-10-29 16:25:09 -07:00
dolphin6k
8d23668589 UNLINK_ONLY macro to work correctly for windows. 2021-10-30 07:34:30 +09:00
dolphin6k
87ed5bc991 tweak for win32_trash() 2021-10-29 23:37:19 +09:00
dolphin6k
61ce0798d9 Initial implimentation of win32_trash() 2021-10-28 22:47:32 +09:00
Bill Kendrick
2e231b5adc switchout/switchin when changing Magic groups
Also, doc'ing Cartoon full-image mode
2021-10-27 22:56:29 -07:00
Bill Kendrick
af1bd0850e Lines/Shapes: Display angles in Tux tip text
When drawing lines or rotating a shape, the angle of rotation
is shown (in the instructions at the bottom).
2021-10-25 23:23:28 -07:00
Bill Kendrick
80150c30a5 Further work to remove compiler warnings 2021-10-24 00:44:53 -07:00
Bill Kendrick
ccb061144a Remove redundant cur_tool == TOOL_FILL test
h/t dcb ("dcb314" on SourceForge)
Closes https://sourceforge.net/p/tuxpaint/bugs/237/
2021-10-20 22:49:49 -07:00
Bill Kendrick
71da1f1a6a Mend swapped args to draw_brush_fill() 2021-10-19 00:31:01 -07:00
Bill Kendrick
dcdebe9882 New Fill tool mode: Brush
Similar to solid fill (classic mode), but allows freehand
filling of an area.

Closes https://sourceforge.net/p/tuxpaint/feature-requests/207/
2021-10-19 00:26:26 -07:00
dolphin6k
d7f0a47e37 Missing format specifier and wrong maximum length for swprintf(). 2021-10-17 21:08:39 +09:00
dolphin6k
90baae6dfe Fixed crash bug regarding onscreen_keyboard and labels.
Every version after when onscreen-keyboard implimented has this bug,
which first became apparent in Windows 10. (Because of more strict
memory handling or something?)
Recommend every windows user to upgrade to 0.9.26-5.
2021-10-17 08:43:44 +09:00
dolphin6k
20bd72e75c Also removed old windows specific code mtw() from tuxpaint.c 2021-10-10 17:50:18 +09:00
Bill Kendrick
d248b7041a Avoid crashing if Magic returns NULL icon img
Was blindly calling thumbnail() on what came back
(which would be NULL if the image failed to load).

Also, mend bug where magic group arrays were being cleared
at the same time as stamp group ones; the latter is larger.
2021-09-25 23:48:45 -07:00
Bill Kendrick
786dbed777 Magic group change: mend problem w/ color options 2021-09-23 00:39:15 -07:00
Bill Kendrick
e3d1f85ac9 Magic tool pagination now possible 2021-09-23 00:15:27 -07:00
Bill Kendrick
901230c710 Storing Magic tools within groups
Still a WIP; no way to paginate yet.  (So now, only able to
access group #0 (MAGIC_TYPE_DISTORTS) magic tools)
2021-09-23 00:00:31 -07:00
Bill Kendrick
3963d74f43 Show Magic tool group pagination buttons
Make room for them, but they don't do anything yet.
2021-09-20 23:36:19 -07:00
Bill Kendrick
3eece8635c WIP Working on Magic tool grouping
Fretwork is in one group; Blocks, Chalk, and Drip in another.
The rest do not currently report (so will not load!).
No UI change to the Magic tool interface yet.
2021-09-20 23:09:33 -07:00
Bill Kendrick
f1e297260a Mend undo buffer surface dimensions bug
Undo buffer canvases were not always the same dimensions
as the drawing surface, if buttonsize was adjusted.
(Adversely affected "Shift" magic tool.)
2021-09-20 22:05:33 -07:00
Bill Kendrick
3487236f93 Animated brushes can rotate now
Takes advantage of SDL_gfxBlitRGBA(), also from SDL_gfx.
2021-09-08 00:53:47 -07:00
Bill Kendrick
a3080eef18 WIP Rotational brushes now supported
Unlike "directional" brushes, in which a 3x3 grid representing the
8 cardinal directions (45 degree steps) is used, only a single brush
image is required, and Tux Paint will rotate it between 0 and 360 degrees,
depending on the direction the mouse is going.

The brush's ".dat" file should contain a line consisting of the word
"rotate".

Note: This adds a dependency on "SDL_gfx" library (Homepage:
https://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
SourceForge project page: https://sourceforge.net/projects/sdlgfx/)
as this feature use it's "rotozoom" functionality.

WIP -- Doesn't handle animated brushes correctly yet!

Closes https://sourceforge.net/p/tuxpaint/feature-requests/122/
2021-09-06 23:45:35 -07:00
Bill Kendrick
8a97e83a7b Always show the appropriate tips for Fill/Shapes
Always show the appropriate instructions at the bottom when the
"Fill" (depends on which sub-tool chosen) and "Shapes" (depends
on whether "simpleshapes" option is set) tools are selected
(e.g., when returning from the "Open" dialog).

Closes https://sourceforge.net/p/tuxpaint/feature-requests/186/
2021-09-06 22:07:37 -07:00
Bill Kendrick
664cfe4c5a Randomly animated brushes didn't get their icon
Mended
2021-09-05 23:21:05 -07:00
Bill Kendrick
2ee0080ffd Icons denoting animated/directional on brushes
Closes https://sourceforge.net/p/tuxpaint/bugs/183/
2021-09-05 23:16:20 -07:00
Bill Kendrick
9c2fa458b8 Ensure command-line options covered more places
Ensured Tux Paint's built-in help ("tuxpaint --help"),
Unix manual ("man page"), and command-line option
tab-completion list all cover the full set of Tux Paint
options.  Some were missing in a few places.
2021-08-08 00:22:05 -07:00
Pere Pujal i Carabantes
a4c22ad2e7 Make use of fill_tips strings and translations. 2021-05-07 21:41:48 +02:00
Bill Kendrick
fa62a91d4f More info on buttonsize in CHANGES.txt
Also bump dates in CHANGES.txt and src/tuxpaint.c
2021-04-19 00:07:32 -07:00
Pere Pujal i Carabantes
fc8310ba03 Don't quit if the user asks for a too big button size, just run with the maximum supported button size. 2021-04-19 01:15:09 +02:00
Mark Kim
8e9362a550 stamps installer support for ios
stamps installer now works with ios.
2021-03-26 22:53:19 -04:00
Mark Kim
444047fdce fix attempt to free non-freeable memory 2021-03-23 22:29:02 -04:00
Mark Kim
4575f184a5 ios export dir support 2021-03-23 21:15:50 -04:00
Mark Kim
c279e823b1 remove __APPLE__ code not used by __IOS__ 2021-03-22 22:19:51 -04:00
Mark Kim
39cc096ece iOS port initial commit
Known Issues
------------
- No printing support.
- No typing support using the OS virtual keyboard.  iOS needs to be signalled
  to bring up the virtual keyboard when the text tool is active.  We also may
  need to do some finagling to make IM work with the virtual keyboard.
- OS language detection doesn't work yet.
- Quitting doesn't close the app.  It just displays a black screen until it is
  force-closed.
- Need to include cross-compilation instructions.

Possible Issues
---------------
- No text display.  This is likely an issue with how pango and related
  libraries were cross-compiled rather than an issue with Tux Paint code.  From
  the error output it appears to be a font rendering issue.
- SVG integration couldn't be tested because RSVG library has not yet be
  cross-compiled successfully.
- Only tested under the iOS Simulator (and not on an actual iOS device yet.)
2021-03-21 23:01:49 -04:00
Bill Kendrick
866d5190bf Continuing to improve fill anti-aliasing 2021-03-08 01:18:00 -08:00
Bill Kendrick
3b5a0a1586 WIP: Fill tool improvement related to antialiasing
Fill tools do a better job at filling around
antialiased edges, and apply some blending.
(Blending does not yet occur with gradient tools.)
2021-03-07 01:00:53 -08:00
Bill Kendrick
76cb1c5446 Linear gradient fill mode 2021-02-20 21:35:46 -08:00
Bill Kendrick
058191bd04 Radial gradient fill tool added
Note: Need to add to docs.
2021-02-20 18:08:06 -08:00
Bill Kendrick
c63b86c8fa Adding sub-tool support to Fill tool
Currently only one sub-tool (Solid) shown, as no code for new
tools has been added yet.  (Plans for linear & radial gradients.)
2021-02-20 16:42:35 -08:00
Bill Kendrick
a8a4001fe9 Squelch some debugging printf() ("most ...") 2021-02-20 15:27:10 -08:00
Bill Kendrick
7cd547e746 "xorpixel()" function added to Magic Tools API 2021-02-20 15:19:40 -08:00
Pere Pujal i Carabantes
43d4f8b494 Activating the ability to have more than one colors row.
Usefull for people with coarse input devices that need bigger buttons but got color buttons too narrow.
Just added the option, all the support code where already in place.
2021-02-05 22:14:39 +01:00
Bill Kendrick
19e5e735cc Scale brushes when rendering in buttos
Allows for larger brushes without UI bugs, but more importantly,
smaller buttons (via --buttonsize less than "48") without UI bugs.
2021-01-27 00:13:42 -08:00
Bill Kendrick
73eef80068 Avoid using HUGE font for button labels
They were rendering very large, and shorter strings were
being shrunk down less horizontally, so appearing stretched out
(and touching the edges of the button needlessly).
2021-01-26 23:33:45 -08:00
Bill Kendrick
3ebb76e7bb Mend backward logic in font picking for buttons
Was choosing largest font (and scaling down) for medium-sized
buttons, and medium font for large-sized buttons.
2021-01-26 23:10:05 -08:00
Bill Kendrick
726aa0897e Disallow window+button size cause overlap in Open
Need room for 3 buttons on left and right, with scroll-down
arrow in the middle.  (Helps both Open and Open->Slides dialogs.)
2021-01-26 23:00:27 -08:00