diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-08-29 17:09:03 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-08-29 17:09:03 +0200 |
commit | fdb5cd74ef64a67cf14470939182454b14df10d2 (patch) | |
tree | 7754cb84d1199f1a0ef3873fad0545a90ed730c5 | |
parent | f987977dffaf10850b17532ad224b5bf643fb591 (diff) |
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
-rw-r--r-- | src/winwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/winwidget.c b/src/winwidget.c index bda946a..3b90158 100644 --- a/src/winwidget.c +++ b/src/winwidget.c @@ -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; } } |