summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-04-16 22:32:41 +0000
committerjstebbins <[email protected]>2009-04-16 22:32:41 +0000
commit77cd601ed19a9d289daf8225d87a61f302a9c5f7 (patch)
tree89624aa621f3207a22dd7082f463053e9f7bd220 /gtk/src/hb-backend.c
parentabbb574581cf09d09605e5acc2eef96c2fba1657 (diff)
LinGui: a couple bug fixes
- cropping arithmatic error - uninitialized pointer reference in hud compositor git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2333 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index eae2f1f2b..8ff42aac4 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -2693,8 +2693,8 @@ ghb_set_scale(signal_user_data_t *ud, gint mode)
// Adjust the cropping to accomplish the desired width and height
crop_width = tinfo.width - crop[2] - crop[3];
crop_height = tinfo.height - crop[0] - crop[1];
- width = MOD_ROUND(crop_width, mod);
- height = MOD_ROUND(crop_height, mod);
+ width = MOD_DOWN(crop_width, mod);
+ height = MOD_DOWN(crop_height, mod);
need1 = (crop_height - height) / 2;
need2 = crop_height - height - need1;