Skip to content

Commit 75f1fce

Browse files
committed
scale-down: only reset dx/dy in non-fullscreen mode
1 parent 2a90af6 commit 75f1fce

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎src/winwidget.c‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,15 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
551551
dh = (winwid->h - winwid->im_y);
552552
if (calc_w < dw) {
553553
dw = calc_w;
554-
dx = 0;
554+
if (!opt.full_screen) {
555+
dx = 0;
556+
}
555557
}
556558
if (calc_h < dh) {
557559
dh = calc_h;
558-
dy = 0;
560+
if (!opt.full_screen) {
561+
dy = 0;
562+
}
559563
}
560564
if (dw > winwid->w)
561565
dw = winwid->w;

0 commit comments

Comments
 (0)