aboutsummaryrefslogtreecommitdiff
path: root/src/cdraw.c
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2024-07-20 00:22:00 +0300
committerKrow Savcik <krow@savcik.xyz>2024-07-20 00:22:00 +0300
commitb486d1f47e0bbc1a0e3414df1f4f9193a3997300 (patch)
treef754d3939cffdcf68ab6a3e8bc87cc933368cee5 /src/cdraw.c
parent689d8faa8638c1d14f79c7960afe3139bd042f96 (diff)
feature: added frames
Diffstat (limited to 'src/cdraw.c')
-rw-r--r--src/cdraw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cdraw.c b/src/cdraw.c
index 2e0097a..37ad773 100644
--- a/src/cdraw.c
+++ b/src/cdraw.c
@@ -204,7 +204,7 @@ main_event_handle()
switch(event.key.keysym.sym) {
case SDLK_BACKSPACE:
if (cur_canvas == NULL) break;
- text = cur_canvas->layers[cur_canvas->a]->name;
+ text = cur_canvas->layers[cur_canvas->a].name;
if (strlen(text))
text[strlen(text)-1] = '\0';
ui_redraw_panel(UI_PANELTYPE_TIMELINE);
@@ -217,7 +217,7 @@ main_event_handle()
break;
case SDL_TEXTINPUT:
if (cur_canvas == NULL) break;
- text = cur_canvas->layers[cur_canvas->a]->name;
+ text = cur_canvas->layers[cur_canvas->a].name;
if (strlen(text) >= LAYERNAMELEN) break;
strncat(text, event.text.text, LAYERNAMELEN - strlen(text));
ui_redraw_panel(UI_PANELTYPE_TIMELINE);
@@ -258,4 +258,6 @@ main(int argc, char *argv[])
if (ltick < fdif)
SDL_Delay(fdif-ltick);
}
+
+ return 0;
}