From ae4f6cc7e9b567bcecc7fb812aa4ab5058aca379 Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Fri, 16 Feb 2024 18:32:54 +0200 Subject: improved: layer interface New layer is added above the selected one rather than being added on top. --- src/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui.c') 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; } -- cgit v1.2.3