summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorulteq <ulteq@web.de>2018-01-11 10:52:55 +0100
committerulteq <ulteq@web.de>2018-03-10 21:30:54 +0100
commit81d0a386e27d044987308a1a66a1a623175fbc4a (patch)
treed64ecb825b311481bef352299cd3c23cb8166cf7
parent4f347623187269bf959d8cfe1ee70da1c8262d33 (diff)
Run draw checks after zoom calculation
-rw-r--r--src/winwidget.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/winwidget.c b/src/winwidget.c
index a928a18..7ac641a 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -443,14 +443,6 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
winwidget_setup_pixmaps(winwid);
- if (!winwid->full_screen && ((gib_imlib_image_has_alpha(winwid->im))
- || (opt.geom_flags & (WidthValue | HeightValue))
- || (winwid->im_x || winwid->im_y)
- || (winwid->w > winwid->im_w * winwid->zoom)
- || (winwid->h > winwid->im_h * winwid->zoom)
- || (winwid->has_rotated)))
- feh_draw_checks(winwid);
-
if (had_resize && !opt.keep_zoom_vp && (winwid->type != WIN_TYPE_THUMBNAIL)) {
double required_zoom = 1.0;
feh_calc_needed_zoom(&required_zoom, winwid->im_w, winwid->im_h, winwid->w, winwid->h);
@@ -499,6 +491,14 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
if (opt.keep_zoom_vp)
winwidget_sanitise_offsets(winwid);
+ if (!winwid->full_screen && ((gib_imlib_image_has_alpha(winwid->im))
+ || (opt.geom_flags & (WidthValue | HeightValue))
+ || (winwid->im_x || winwid->im_y)
+ || (winwid->w > winwid->im_w * winwid->zoom)
+ || (winwid->h > winwid->im_h * winwid->zoom)
+ || (winwid->has_rotated)))
+ feh_draw_checks(winwid);
+
/* Now we ensure only to render the area we're looking at */
dx = winwid->im_x;
dy = winwid->im_y;