summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2024-08-24 18:25:44 +0200
committerLouis Burda <quent.burda@gmail.com>2024-08-24 18:25:44 +0200
commitd7ad64f906143097ff984f14095f825bb9ebae2e (patch)
tree7d36f23e685bc6155597fcc7e8f40978a11ba083
parente00ec83c539b7962d82f2c44a68b1d2c4a26a6ba (diff)
downloadxnote-d7ad64f906143097ff984f14095f825bb9ebae2e.tar.gz
xnote-d7ad64f906143097ff984f14095f825bb9ebae2e.zip
Generalize naming END_LINE to END_SHAPE
-rw-r--r--xnote.c4
1 files 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) {