From c918280fb5de6e6256cfd9a438b3578c04e3afc2 Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Tue, 6 Feb 2024 22:56:21 +0200 Subject: feautre: added undo/redo buttons The change history is kept in a ring buffer of definite size 2000. --- src/tools.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tools.c') diff --git a/src/tools.c b/src/tools.c index 1ff979a..97f335c 100644 --- a/src/tools.c +++ b/src/tools.c @@ -2,6 +2,7 @@ #include "tools.h" #include "types.h" +#include "action.h" #include "canvas.h" #include "ui.h" @@ -16,8 +17,9 @@ uint8 tool_array[] = { TOOL_TYPE_CPICKER, TOOL_TYPE_ZOOMOUT, TOOL_TYPE_ZOOMIN, - TOOL_TYPE_EMPTY, + TOOL_TYPE_UNDO, TOOL_TYPE_CLOWN, + TOOL_TYPE_REDO, }; void -- cgit v1.2.3