aboutsummaryrefslogtreecommitdiff
path: root/src/user.c
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2024-02-16 18:09:29 +0200
committerKrow Savcik <krow@savcik.xyz>2024-02-16 18:09:29 +0200
commitdc9a97424933e43b69996c0cbab8ecc01cfe72d0 (patch)
treea10b9f1e45685b6455961c870daf0bb6682f19db /src/user.c
parent306691b02acce8711ad82c8efc736164e1fe7cd2 (diff)
improved: layers now have names
Diffstat (limited to 'src/user.c')
-rw-r--r--src/user.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/user.c b/src/user.c
index dc2ffaf..54ae60d 100644
--- a/src/user.c
+++ b/src/user.c
@@ -170,7 +170,6 @@ user_testing_layer_add(const Arg *x)
/* TODO: temp function */
if (cur_canvas == NULL) return;
canvas_add_layer(cur_canvas, -1);
- fprintf(stdout, "%s:%u: added layer\n", __FILE__, __LINE__);
cur_canvas->cur_layer = cur_canvas->layer_arr_cnt-1;
ui_redraw_panel(UI_PANELTYPE_CANVAS);
ui_redraw_panel(UI_PANELTYPE_TIMELINE);
@@ -181,10 +180,9 @@ user_layer_chng(const Arg *x)
{
if (cur_canvas == NULL) return;
cur_canvas->cur_layer += (unsigned int)cur_canvas->layer_arr_cnt;
- cur_canvas->cur_layer += (x->i % cur_canvas->layer_arr_cnt);
+ cur_canvas->cur_layer += (x->i % (int)cur_canvas->layer_arr_cnt);
cur_canvas->cur_layer %= cur_canvas->layer_arr_cnt;
- fprintf(stdout, "%s:%u: changed to layer %u\n", __FILE__, __LINE__, cur_canvas->cur_layer);
ui_redraw_panel(UI_PANELTYPE_CANVAS);
ui_redraw_panel(UI_PANELTYPE_TIMELINE);
}