diff options
author | John Stebbins <[email protected]> | 2017-06-16 12:09:56 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-06-16 12:09:56 -0700 |
commit | 2cac584156b1e82c3948369d0f5e03e7ba7a9876 (patch) | |
tree | a8c5159bb8b5bd73b9646e409bf467f732243296 | |
parent | 68762017fe256de8df143331d77e06d317edd977 (diff) |
LinGui: fix initial dimensions when *not* autocrop
-rw-r--r-- | gtk/src/callbacks.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); |