Skip to content

Commit

Permalink
removed static-window
Browse files Browse the repository at this point in the history
  • Loading branch information
signedByteOverflow committed Mar 5, 2018
1 parent 96a8e52 commit 4ec93c2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/winwidget.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,6 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
int antialias = 0;
int need_center = winwid->had_resize;

/* Causes horrible "tearing" (render picture big/small if auto-zoom is on),
* if you switch fast between images (slideshow).
*/
if (!winwid->full_screen && resize) {
winwidget_resize(winwid, winwid->im_w, winwid->im_h, 0);
winwidget_reset_image(winwid);
Expand Down Expand Up @@ -564,14 +561,14 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
}
else if (need_center && !winwid->full_screen
&& (winwid->type != WIN_TYPE_THUMBNAIL) && !opt.keep_zoom_vp) {
int smaller;
int image_smaller;
winwid->im_x = (int) (winwid->w - (winwid->im_w * winwid->zoom)) >> 1;
winwid->im_y = (int) (winwid->h - (winwid->im_h * winwid->zoom)) >> 1;

smaller = ((winwid->im_w < winwid->w)
image_smaller = ((winwid->im_w < winwid->w)
&& (winwid->im_h < winwid->h));

if (!smaller && opt.begin_top)
if (!image_smaller && opt.begin_top)
winwid->im_y = 0;
}

Expand Down

0 comments on commit 4ec93c2

Please sign in to comment.