Commit graph

1308 commits

Author SHA1 Message Date
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
Pere Pujal i Carabantes
e6cd8d7b30 Input Method working again in the sdl2.0 branch. 2021-10-24 12:12:53 +02:00
Pere Pujal i Carabantes
9cf77f684c Merge branch 'master' into sdl2.0
There are problems with im that should be investigated...
2021-10-24 11:47:54 +02: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
Pere Pujal i Carabantes
16f56ae9cd SDL2 also for Windows, by TOYAMA Shin-ichi 2021-09-29 20:25:56 +02:00
Pere Pujal i Carabantes
6891266eee SDL(2)_gfxBlitRGBA() is not available in the SDL2_gfx library. 2021-09-28 00:59:01 +02:00
Pere Pujal i Carabantes
b6b0636eb5 Merge branch 'master' into sdl2.0 2021-09-27 23:32:48 +02: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
Pere Pujal i Carabantes
10baa371dd September 8th
Merge branch 'master' into sdl2.0
Many changes and improvements by Bill
2021-09-08 00:10:35 +02: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
4d27837af0 Fill crash solved and some translations Merge branch 'master' into sdl2.0 2021-05-09 18:02:11 +02:00
Pere Pujal i Carabantes
a4c22ad2e7 Make use of fill_tips strings and translations. 2021-05-07 21:41:48 +02:00
Pere Pujal i Carabantes
8c0bf052bf Changes in buttonsize, Merge branch 'master' into sdl2.0 2021-04-25 07:39:01 +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
c46bd2ce51 stamps installer support for ios
stamps installer now works with ios.
2021-03-26 22:54:15 -04: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
8db052c9d3 fix attempt to free non-freeable memory 2021-03-23 22:29:41 -04:00
Mark Kim
444047fdce fix attempt to free non-freeable memory 2021-03-23 22:29:02 -04:00
Mark Kim
c3cce36fc0 Merge branch 'master' into sdl2.0 2021-03-23 21:22:12 -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
6fc6e798bf remove __APPLE__ code not used by __IOS__ 2021-03-22 22:02:39 -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
Mark Kim
92196bd69a 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 20:46:03 -04:00
Pere Pujal i Carabantes
f54bde3df2 Adapt Fill to SDL2 2021-03-12 00:14:36 +01:00
Pere Pujal i Carabantes
96e934e639 Docs translations and fill improvements Merge branch 'master' into sdl2.0 2021-03-11 23:39:32 +01: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
Pere Pujal i Carabantes
00b4aa126f Merge branch 'master' into sdl2.0. Updating with latest changes and improvements, clone, fill,... 2021-02-25 00:48:38 +01:00