diff options
author | Krow Savcik <krow@savcik.xyz> | 2024-02-16 18:32:54 +0200 |
---|---|---|
committer | Krow Savcik <krow@savcik.xyz> | 2024-02-16 18:32:54 +0200 |
commit | ae4f6cc7e9b567bcecc7fb812aa4ab5058aca379 (patch) | |
tree | 97fc380396bd4413c89d3608d45a0bdf25283a4e /src/ui.c | |
parent | dc9a97424933e43b69996c0cbab8ecc01cfe72d0 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |