diff options
author | jstebbins <[email protected]> | 2012-12-08 22:05:17 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-12-08 22:05:17 +0000 |
commit | 37e64eff95e99c535eab605432ea90d572be17ea (patch) | |
tree | d811f591506282016a364952e952c1a253f6cad4 /gtk | |
parent | 5299bc74c04ed8908ab2b18ce01b9c43b0ae99b7 (diff) |
LinGui: fix loose crop calculation
It was sometimes coming up with odd cropping values
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5093 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/hb-backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index cda5882e8..fe02eb966 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -3717,8 +3717,8 @@ ghb_set_scale_settings(GValue *settings, gint mode) gint need1, need2; // Adjust the cropping to accomplish the desired width and height - crop_width = width - crop[2] - crop[3]; - crop_height = height - crop[0] - crop[1]; + crop_width = title->width - crop[2] - crop[3]; + crop_height = title->height - crop[0] - crop[1]; width = MOD_DOWN(crop_width, mod); height = MOD_DOWN(crop_height, mod); |