Mend issue of rotating brushes not drawing on single click

Rotating brushes would not draw anything if you simply
click and release with no motion in between (unless brush
spacing was set to the minimum).  It will now draw the
default "up" direction of the brush in that situation.
(h/t Pere for reporting)

Implemented by using a boolean that tracks whether there has
been any motion since a click; if not, the `brush_counter` is
forced to reset (to 999), to insist on `brush_draw()` blitting
something.  (It used to always ignore if a rotational brush,
to avoid accidentally drawing in the wrong direction on release.)
This commit is contained in:
Bill Kendrick 2024-05-25 11:50:17 -07:00
parent 58e685e58e
commit 4256d81278
2 changed files with 53 additions and 14 deletions

View file

@ -6,7 +6,7 @@ Copyright (c) 2002-2024
Various contributors (see below, and AUTHORS.txt)
https://tuxpaint.org/
2024.May.22 (0.9.33)
2024.May.25 (0.9.33)
* New Magic Tools:
----------------
* Dither & Dither (Keep Color): Replaces all or part of a drawing
@ -43,6 +43,15 @@ https://tuxpaint.org/
* Transparent erasers
Bill Kendrick <bill@newbreedsoftware.com>
* Improvements to Paint tool:
---------------------------
* Rotating brushes would not draw anything if you simply
click and release with no motion in between (unless brush
spacing was set to the minimum). It will now draw the
default "up" direction of the brush in that situation.
(h/t Pere for reporting)
Bill Kendrick <bill@newbreedsoftware.com>
* New Brushes:
------------
* Pencil & Acrylic