aboutsummaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2024-02-16 18:32:54 +0200
committerKrow Savcik <krow@savcik.xyz>2024-02-16 18:32:54 +0200
commitae4f6cc7e9b567bcecc7fb812aa4ab5058aca379 (patch)
tree97fc380396bd4413c89d3608d45a0bdf25283a4e /src/ui.c
parentdc9a97424933e43b69996c0cbab8ecc01cfe72d0 (diff)
improved: layer interface
New layer is added above the selected one rather than being added on top.
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index dd9c9fe..9a49fc4 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -305,8 +305,8 @@ ui_mousel_down(int x, int y)
ui_redraw_panel(UI_PANELTYPE_CANVAS);
} else if (x <= 162) {
y = cur_canvas->layer_arr_cnt-y-1;
- y -= (int)(cur_canvas->cur_layer);
- user_layer_chng(&y);
+ canvas_change_layer(cur_canvas, y);
+ ui_redraw_panel(UI_PANELTYPE_TIMELINE);
}
break;
}