summaryrefslogtreecommitdiff
path: root/meme/gui.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2014-09-27 14:03:42 (GMT)
committerWerner Almesberger <werner@almesberger.net>2014-09-27 14:03:42 (GMT)
commit41f21897cc736afb4a7c0ca28c16aae62274d1c2 (patch)
tree5ca27f4c4ab58e1822bc4c34a008999965e3c81f /meme/gui.c
parent7a56156f9c43fa6bf0bc4a34ab0be767df30e1c8 (diff)
downloadmisc-41f21897cc736afb4a7c0ca28c16aae62274d1c2.zip
misc-41f21897cc736afb4a7c0ca28c16aae62274d1c2.tar.gz
misc-41f21897cc736afb4a7c0ca28c16aae62274d1c2.tar.bz2
meme/gui.c (button_event, clear_markers), README: right-click clears both markers
Diffstat (limited to 'meme/gui.c')
-rw-r--r--meme/gui.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/meme/gui.c b/meme/gui.c
index 09b7331..4f54ce9 100644
--- a/meme/gui.c
+++ b/meme/gui.c
@@ -827,6 +827,12 @@ static void set_marker(const struct vertex *v)
}
+static void clear_markers(void)
+{
+ mark_a = mark_b = NULL;
+}
+
+
/* ----- Scaling ----------------------------------------------------------- */
@@ -875,6 +881,9 @@ static void button_event(SDL_MouseButtonEvent *button)
x_orig = x;
y_orig = y;
break;
+ case 3:
+ clear_markers();
+ break;
case 4: /* wheel forward */
if (contrast_mode) {
contrast_change(0);