Commit 422cbeb8 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Revert "fix zoom_default for --scale-down"

This reverts commit b257e011.

Conflicts:

	ChangeLog
parent 31afac45
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -5,8 +5,6 @@ git HEAD
    * format specifier %P now prints the number of pixels with k/M suffix,
      like %S. Printing the program name ("feh") is no longer supported
    * feh --list now uses %S/%P to print image size and amount of pixels
    * Fix zoom_default key (caused blurry images in some cases due to a bad
      workaround)
    * make --quiet and --verbose behave more like their documented way, never
      ignore out of memory errors
    * Use ImageMagick (convert) as loader for unsupported file formats
+3 −5
Original line number Diff line number Diff line
@@ -607,11 +607,9 @@ void feh_event_handle_keypress(XEvent * ev)
			winwid->old_zoom = 1.001;
		winwidget_center_image(winwid);
		winwidget_render_image(winwid, 0, 0);
		/*
		 * --scale-down used to do weird stuff for zoom = 1.0, but setting
		 * it to another value here is not the way to go. Also, couldn't
		 * reproduce the issue -- 2012-02-16
		 */
		/* --scale-down will also do weird stuff if zoom is 1.0 */
		if (opt.scale_down)
			winwid->zoom = 1.001;
	}
	else if (feh_is_kp(&keys.zoom_fit, keysym, state)) {
		feh_calc_needed_zoom(&winwid->zoom, winwid->im_w, winwid->im_h, winwid->w, winwid->h);