From d7ad64f906143097ff984f14095f825bb9ebae2e Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Sat, 24 Aug 2024 18:25:44 +0200 Subject: Generalize naming END_LINE to END_SHAPE --- xnote.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xnote.c b/xnote.c index b6f6de7..148a068 100644 --- a/xnote.c +++ b/xnote.c @@ -30,7 +30,7 @@ enum event { EVENT_START, EVENT_START_LINE, EVENT_START_RECT, - EVENT_END_LINE, + EVENT_END_SHAPE, EVENT_START_NOTE, EVENT_MOUSE_MOVE, EVENT_MOUSE_DRAG, @@ -232,7 +232,7 @@ mouse_press_cb(GLFWwindow *window, int button, int action, int mods) struct line *line = &lines[line_count-1]; shrink(&line->points, line->count, &line->cap, sizeof(struct point)); - push_event(EVENT_END_LINE); + push_event(EVENT_END_SHAPE); } } } else if (button == GLFW_MOUSE_BUTTON_RIGHT) { -- cgit v1.2.3-71-gd317