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

revers winwidget_render_image to the state before v3.11

It turned out that all fix attempts since
2a90af6d were not quite addressing the root
cause of the problem, and only trying to fix its symptoms.

See 2ac79eae for details.
parent 2ac79eae
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -500,10 +500,8 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
			} else {
				winwid->im_x = - opt.offset_x * winwid->zoom;
			}
		} else if (!opt.scale_down || (winwid->w != winwid->im_w)) {
			winwid->im_x = (int) (winwid->w - (winwid->im_w * winwid->zoom)) >> 1;
		} else {
			winwid->im_x = 0;
			winwid->im_x = (int) (winwid->w - (winwid->im_w * winwid->zoom)) >> 1;
		}
		if (opt.offset_flags & YValue) {
			if (opt.offset_flags & YNegative) {
@@ -511,10 +509,8 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
			} else {
				winwid->im_y = - opt.offset_y * winwid->zoom;
			}
		} else if (!opt.scale_down || (winwid->h != winwid->im_h)) {
			winwid->im_y = (int) (winwid->h - (winwid->im_h * winwid->zoom)) >> 1;
		} else {
			winwid->im_y = 0;
			winwid->im_y = (int) (winwid->h - (winwid->im_h * winwid->zoom)) >> 1;
		}
	}