summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-05-04 21:01:42 +0000
committerjstebbins <[email protected]>2009-05-04 21:01:42 +0000
commitf0ac9aeb7031f065ef0e99804f725ddc64ca5b02 (patch)
tree826d400cdd479c0b5af2ca0f51f036a167cfbb73 /gtk/src
parent22af3951ff812d6f0cc0a63b7aa304716309c441 (diff)
LinGui: preview crop border fix
fix slight virtical stretching when borders applied and mod is 16 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2381 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/hb-backend.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index f2f0f2a7f..46e3e9d3f 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -2917,6 +2917,7 @@ set_preview_job_settings(hb_job_t *job, GValue *settings)
job->crop[3] = 0;
job->width = job->title->width;
job->height = job->title->height;
+ job->anamorphic.modulus = 2;
}
gint deint = ghb_settings_combo_int(settings, "PictureDeinterlace");
@@ -4088,6 +4089,7 @@ ghb_get_preview_image(
c2 = ghb_settings_get_int(settings, "PictureLeftCrop");
c3 = ghb_settings_get_int(settings, "PictureRightCrop");
+printf("dims %dx%d\n", w, h);
gdouble xscale = (gdouble)w / (gdouble)(title->width - c2 - c3);
gdouble yscale = (gdouble)h / (gdouble)(title->height - c0 - c1);
@@ -4126,7 +4128,7 @@ ghb_get_preview_image(
w *= (gdouble)dstWidth / orig_w;
h *= (gdouble)dstHeight / orig_h;
}
- g_debug("scaled %d x %d", dstWidth, dstHeight);
+ g_message("scaled %d x %d", dstWidth, dstHeight);
GdkPixbuf *scaled_preview;
scaled_preview = gdk_pixbuf_scale_simple(preview, dstWidth, dstHeight, GDK_INTERP_HYPER);
if (ghb_settings_get_boolean(settings, "show_crop"))