diff options
Diffstat (limited to 'src/cdraw.c')
-rw-r--r-- | src/cdraw.c | 6 |
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; } |