]> granicus.if.org Git - handbrake/commitdiff
LinGui: improve the precision of the scaling of the preview image for display
authorjstebbins <jstebbins.hb@gmail.com>
Sat, 20 Sep 2008 01:26:14 +0000 (01:26 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Sat, 20 Sep 2008 01:26:14 +0000 (01:26 +0000)
small round off error caused the display to not visibly change for
every incremental change in the width control.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1734 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/hb-backend.c

index b05c249cc69a0c70d7ccd5e1fad9ac3e8959d1ed..c25f02839dfe61fbd0bbed69da81d33dc20f2608 100644 (file)
@@ -3652,6 +3652,7 @@ ghb_get_preview_image(
        gboolean anamorphic = ghb_settings_get_boolean(settings, "anamorphic");
        if (anamorphic)
        {
+               title->job->modulus = 1;
                hb_set_anamorphic_size( title->job, &width, &height, &par_width, &par_height );
                if (par_width > par_height)
                        dstWidth = dstWidth * par_width / par_height;