summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-10-31 10:08:33 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-10-31 10:08:33 +0100
commite16222868dbe7a09c79418162b7fefbd194b6b8d (patch)
tree98ef035c8b44675637a3baed49e33803a218e8c3 /src
parent5d73b0934c8c6c9ef9610e31c5b79d216af51d8e (diff)
Experimental --auto-zoom tiling support (use -.Z for best results)
Diffstat (limited to 'src')
-rw-r--r--src/winwidget.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/winwidget.c b/src/winwidget.c
index c678d5b..ed7002a 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -416,6 +416,12 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
|| (winwid->has_rotated)))
feh_draw_checks(winwid);
+ if (!winwid->full_screen && opt.zoom_mode
+ && (winwid->zoom == 1.0) && !opt.geom_flags
+ && (winwid->w > winwid->im_w) && (winwid->h > winwid->im_h))
+ feh_calc_needed_zoom(&(winwid->zoom), winwid->im_w, winwid->im_h, winwid->w, winwid->h);
+
+
if (resize && (winwid->full_screen || opt.geom_flags)) {
int smaller; /* Is the image smaller than screen? */
int max_w = 0, max_h = 0;