summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-09-09 21:48:02 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-09-09 21:48:02 +0200
commite948ee5358dfc800d10c3eea3091cc3a5a74a748 (patch)
tree3081cb59abbf1abaa8988aa03ca8045ce2fafd02
parent2ac79eae08a5c68d29276c70c01781bd5c25031a (diff)
revers winwidget_render_image to the state before v3.11
It turned out that all fix attempts since 2a90af6d3709dd01c447f18db5109cab86eb4735 were not quite addressing the root cause of the problem, and only trying to fix its symptoms. See 2ac79eae08a5c68d29276c70c01781bd5c25031a for details.
-rw-r--r--src/winwidget.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/winwidget.c b/src/winwidget.c
index 033d04b..809a0a6 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -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;
}
}