diff options
author | jstebbins <[email protected]> | 2011-06-22 14:51:32 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-06-22 14:51:32 +0000 |
commit | 4de781f3dd1cd4c2c8a7c1de3987da50bf39b683 (patch) | |
tree | 3dacf481c0d99c25835b765ef2bb412f425fc23e | |
parent | 712e7e6105ae5d5a761ae0b1a1caae2438794b78 (diff) |
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
-rw-r--r-- | gtk/src/hb-backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |