From dc9a97424933e43b69996c0cbab8ecc01cfe72d0 Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Fri, 16 Feb 2024 18:09:29 +0200 Subject: improved: layers now have names --- src/canvas.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/canvas.h') 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 *); -- cgit v1.2.3