Unverified Commit fdb5cd74 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

winwidget_render_image: scale-down: fix fullscreen check

We need to check whether the winwidget is fullscreen at the moment, not
whether feh was started with --full-screen.

Closes #794
parent f987977d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -551,13 +551,13 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
	dh = (winwid->h - winwid->im_y);
	if (calc_w < dw) {
		dw = calc_w;
		if (!opt.full_screen) {
		if (!winwid->full_screen) {
			dx = 0;
		}
	}
	if (calc_h < dh) {
		dh = calc_h;
		if (!opt.full_screen) {
		if (!winwid->full_screen) {
			dy = 0;
		}
	}