From 5a682426b128fd33bd76f466831a9a36e80e1c2c Mon Sep 17 00:00:00 2001 From: Bert Date: Mon, 31 Jan 2011 16:06:40 +0100 Subject: New key command: r, reload image --- main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 4771cd9..96cf10e 100644 --- a/main.c +++ b/main.c @@ -235,6 +235,9 @@ void on_keypress(XEvent *ev) { case XK_a: changed = img_toggle_antialias(&img); break; + case XK_r: + changed = img_load(&img, filenames[fileidx]); + break; } if (changed) { -- cgit v1.2.3