Make sure Fill uses undo (but also intelligently)
"Fill", as a new main-toolbar tool, was not recording snapshots of the image for the "Undo" tool. Mended. However, also updated the tool so that it doesn't _bother_ recording into the undo buffer if the fill action is a no-op (e.g., clicking the same spot a second time, or otherwise attempting to fill an area with a color that's identical to what's already on the canvas).
This commit is contained in:
parent
8f9ea4cb69
commit
a54dd570b4
4 changed files with 42 additions and 17 deletions
|
|
@ -27,11 +27,12 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
(See COPYING.txt)
|
||||
|
||||
Last updated: September 12, 2019
|
||||
Last updated: September 14, 2019
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#include "SDL.h"
|
||||
|
||||
int would_flood_fill(SDL_Surface * canvas, int x, int y, Uint32 cur_colr, Uint32 old_colr);
|
||||
void do_flood_fill(SDL_Surface * canvas, int x, int y, Uint32 cur_colr, Uint32 old_colr, int * x1, int * y1, int * x2, int * y2);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue