diff options
author | Krow Savcik <krow@savcik.xyz> | 2024-07-13 13:33:57 +0300 |
---|---|---|
committer | Krow Savcik <krow@savcik.xyz> | 2024-07-13 13:33:57 +0300 |
commit | 6e8119be3bdd4ac54cdb08667c39f4a1d3047270 (patch) | |
tree | aa267a1ee884f470f470c13f9316edc2eb603ad6 /src/canvas.h | |
parent | 075354a70a4a93f474fdf083e2cd99826c95ee1a (diff) |
feature: layers's name are editable now
Diffstat (limited to 'src/canvas.h')
-rw-r--r-- | src/canvas.h | 7 |
1 files changed, 6 insertions, 1 deletions
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; |