From 6e8119be3bdd4ac54cdb08667c39f4a1d3047270 Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Sat, 13 Jul 2024 13:33:57 +0300 Subject: feature: layers's name are editable now --- src/canvas.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/canvas.h') diff --git a/src/canvas.h b/src/canvas.h index ae45dfa..21b1d67 100644 --- a/src/canvas.h +++ b/src/canvas.h @@ -2,11 +2,12 @@ /* TODO: move to config.h */ #define HISTLENGTH 2000 +#define LAYERNAMELEN 30 struct Layer { unsigned int *pix; unsigned int visible; - char name[128]; + char name[LAYERNAMELEN+1]; }; struct Canvas { @@ -22,6 +23,10 @@ struct Canvas { uint *pres_pix; Action history[HISTLENGTH]; int hist_s, hist_e, hist_i, hist_isend; + + + /* Variables used for various editing states */ + unsigned int a; }; typedef struct Layer Layer; -- cgit v1.2.3