From 4de781f3dd1cd4c2c8a7c1de3987da50bf39b683 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 22 Jun 2011 14:51:32 +0000 Subject: [PATCH] LinGui: fix scaling problem with preview window ... when the screen is smaller than the preview. If the width fit but the height didn't, it computed incorrect size and displayed with wrong aspect. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4074 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/hb-backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index a55897ab8..e643dea44 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -5319,7 +5319,7 @@ ghb_get_preview_image( if (dstHeight > s_h * factor / 100) { dstHeight = s_h * factor / 100; - dstWidth = dstWidth * dstHeight / orig_h; + dstWidth = orig_w * dstHeight / orig_h; } xscale *= (gdouble)dstWidth / orig_w; yscale *= (gdouble)dstHeight / orig_h; -- 2.40.0