diff options
author | Krow Savcik <krow@savcik.xyz> | 2024-02-16 18:09:29 +0200 |
---|---|---|
committer | Krow Savcik <krow@savcik.xyz> | 2024-02-16 18:09:29 +0200 |
commit | dc9a97424933e43b69996c0cbab8ecc01cfe72d0 (patch) | |
tree | a10b9f1e45685b6455961c870daf0bb6682f19db /src/canvas.h | |
parent | 306691b02acce8711ad82c8efc736164e1fe7cd2 (diff) |
improved: layers now have names
Diffstat (limited to 'src/canvas.h')
-rw-r--r-- | src/canvas.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/canvas.h b/src/canvas.h index 7595473..5735aba 100644 --- a/src/canvas.h +++ b/src/canvas.h @@ -6,10 +6,11 @@ struct Layer { unsigned int *pix; unsigned int visible; + char name[128]; }; struct Canvas { - unsigned char layer_arr_cnt, layer_arr_sz; + unsigned int layer_arr_cnt, layer_arr_sz; unsigned int cur_col, cur_layer; unsigned int w, h, zoom; char *proj_path; @@ -41,7 +42,7 @@ void canvas_point_draw(Canvas *, long int, long int); void canvas_mousel_up(Canvas *); void canvas_mousel_down(Canvas *, long int, long int); void canvas_mouse_move(Canvas *, long int, long int); -void canvas_add_layer(Canvas *, unsigned char); +void canvas_add_layer(Canvas *, unsigned int); void canvas_move_x(Canvas *, long int); void canvas_move_y(Canvas *, long int); void canvas_refresh(Canvas *); |