From: John Stebbins Date: Fri, 16 Jun 2017 19:09:56 +0000 (-0700) Subject: LinGui: fix initial dimensions when *not* autocrop X-Git-Tag: 1.1.0~514 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cac584156b1e82c3948369d0f5e03e7ba7a9876;p=handbrake LinGui: fix initial dimensions when *not* autocrop --- diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 5f7c04b8e..862cd3c6e 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1885,8 +1885,7 @@ set_title_settings(signal_user_data_t *ud, GhbValue *settings) ghb_dict_set(settings, "volume_label", ghb_value_dup( ghb_dict_get_value(ud->globals, "volume_label"))); } - ghb_dict_set_int(settings, "scale_width", - title->geometry.width - title->crop[2] - title->crop[3]); + ghb_dict_set_int(settings, "scale_width", title->geometry.width); // If anamorphic or keep_aspect, the hight will // be automatically calculated @@ -1899,8 +1898,7 @@ set_title_settings(signal_user_data_t *ud, GhbValue *settings) pic_par == HB_ANAMORPHIC_AUTO || pic_par == HB_ANAMORPHIC_CUSTOM) { - ghb_dict_set_int(settings, "scale_height", - title->geometry.height - title->crop[0] - title->crop[1]); + ghb_dict_set_int(settings, "scale_height", title->geometry.height); } ghb_set_scale_settings(settings, GHB_PIC_KEEP_PAR|GHB_PIC_USE_MAX);