diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-08-26 16:51:58 +0200 | 
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-08-26 16:51:58 +0200 | 
| commit | 75f1fce37c6133ec014ec4b6753e9e028cf01f33 (patch) | |
| tree | 28ac521535221a2a98183296640ebc0612bb8039 | |
| parent | 2a90af6d3709dd01c447f18db5109cab86eb4735 (diff) | |
scale-down: only reset dx/dy in non-fullscreen mode
| -rw-r--r-- | src/winwidget.c | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/src/winwidget.c b/src/winwidget.c index f51816e..a06d020 100644 --- a/src/winwidget.c +++ b/src/winwidget.c @@ -551,11 +551,15 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)  	dh = (winwid->h - winwid->im_y);  	if (calc_w < dw) {  		dw = calc_w; -		dx = 0; +		if (!opt.full_screen) { +			dx = 0; +		}  	}  	if (calc_h < dh) {  		dh = calc_h; -		dy = 0; +		if (!opt.full_screen) { +			dy = 0; +		}  	}  	if (dw > winwid->w)  		dw = winwid->w; | 
