Commit 22485fb7 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

reload: accept float values

parent d1f218ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ git HEAD
    ** %z    image zoom
    * Always use file URL as filename when opening http files.
      (consequence: lossless rotate no longer works for such files)
    * --reload now accepts rational numbers

Sun, 25 Mar 2012 13:13:26 +0200  Daniel Friesel <derf@finalrewind.org>

+1 −1
Original line number Diff line number Diff line
@@ -750,7 +750,7 @@ void feh_event_handle_keypress(XEvent * ev)
		if (opt.reload < SLIDESHOW_RELOAD_MAX)
			opt.reload++;
		else if (opt.verbose)
			weprintf("Cannot set RELOAD higher than %d seconds.", opt.reload);
			weprintf("Cannot set RELOAD higher than %f seconds.", opt.reload);
	}
	else if (feh_is_kp(&keys.reload_minus, keysym, state)) {
		if (opt.reload > 1)
+1 −1
Original line number Diff line number Diff line
@@ -590,7 +590,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
			}
			break;
		case 'R':
			opt.reload = atoi(optarg);
			opt.reload = atof(optarg);
			break;
		case 'a':
			opt.alpha = 1;
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ struct __fehoptions {
	int limit_w;
	int limit_h;
	unsigned int thumb_redraw;
	int reload;
	double reload;
	int sort;
	int debug;
	int geom_flags;