Commit 82f6f0a4 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

winwidget: resize: only check scale_down when not in fullscreen mode (closes #192)

parent 849103d8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
git HEAD

    * Fix --scale-down breaking image centering in fullscreen mode

Sun, 17 May 2015 20:40:36 +0200  Daniel Friesel <derf+feh@finalrewind.org>

* Release v2.13
+2 −2
Original line number Diff line number Diff line
@@ -443,8 +443,8 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
		feh_calc_needed_zoom(&(winwid->zoom), winwid->im_w, winwid->im_h, winwid->w, winwid->h);


	if (resize && !opt.scale_down && (winwid->full_screen
                     || (opt.geom_flags & (WidthValue | HeightValue)))) {
	if (resize && (winwid->full_screen
                     || (!opt.scale_down && (opt.geom_flags & (WidthValue | HeightValue))))) {
		int smaller;	/* Is the image smaller than screen? */
		int max_w = 0, max_h = 0;