diff options
| author | Louis Burda <quent.burda@gmail.com> | 2024-08-24 18:25:44 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2024-08-24 18:25:44 +0200 |
| commit | d7ad64f906143097ff984f14095f825bb9ebae2e (patch) | |
| tree | 7d36f23e685bc6155597fcc7e8f40978a11ba083 | |
| parent | e00ec83c539b7962d82f2c44a68b1d2c4a26a6ba (diff) | |
| download | xnote-d7ad64f906143097ff984f14095f825bb9ebae2e.tar.gz xnote-d7ad64f906143097ff984f14095f825bb9ebae2e.zip | |
Generalize naming END_LINE to END_SHAPE
| -rw-r--r-- | xnote.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |
