aboutsummaryrefslogtreecommitdiff
path: root/src/tools.c
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2024-02-06 22:56:21 +0200
committerKrow Savcik <krow@savcik.xyz>2024-02-06 22:56:21 +0200
commitc918280fb5de6e6256cfd9a438b3578c04e3afc2 (patch)
treeba72e1464c487b61d4376647769c93cdbccf7a21 /src/tools.c
parent009a890482edfb2247da1d69b86f4d193699e3cb (diff)
feautre: added undo/redo buttons
The change history is kept in a ring buffer of definite size 2000.
Diffstat (limited to 'src/tools.c')
-rw-r--r--src/tools.c4
1 files changed, 3 insertions, 1 deletions
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