diff options
author | John Stebbins <[email protected]> | 2016-10-31 09:35:27 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2016-10-31 09:35:27 -0700 |
commit | 00eeae7591023ed47a5cd6b90bf7b11ac1bfae41 (patch) | |
tree | 54cfe6bd3dced28944974448f888fda63f51a274 /gtk/src/callbacks.c | |
parent | 0a913f088db821b964edfd5a711292cc6069cfa9 (diff) |
Add new anamorphic mode "Automatic", delete "Strict" (#367)
* Add new anamorphic mode "Automatic", delete "Strict"
Anamorphic mode automatic is added to support Bradley's new presets that
are designed to pick a PAR that maximizes storage resolution.
Strict is converted to Loose + mod == 2 + UsesPictureSettings == 2
when importing presets
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 372d20280..83b7da46c 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1698,18 +1698,21 @@ update_aspect_info(signal_user_data_t *ud) gtk_label_set_text(GTK_LABEL(widget), text); switch (ghb_settings_combo_int(ud->settings, "PicturePAR")) { - case 0: + case HB_ANAMORPHIC_NONE: text = _("Off"); break; - case 1: + case HB_ANAMORPHIC_STRICT: text = _("Strict"); break; - case 2: + case HB_ANAMORPHIC_LOOSE: text = _("Loose"); break; - case 3: + case HB_ANAMORPHIC_CUSTOM: text = _("Custom"); break; + case HB_ANAMORPHIC_AUTO: + text = _("Automatic"); + break; default: text = _("Unknown"); break; @@ -1877,7 +1880,10 @@ set_title_settings(signal_user_data_t *ud, GhbValue *settings) gint pic_par; keep_aspect = ghb_dict_get_bool(settings, "PictureKeepRatio"); pic_par = ghb_settings_combo_int(settings, "PicturePAR"); - if (!(keep_aspect || pic_par) || pic_par == 3) + if (!keep_aspect || + pic_par == HB_ANAMORPHIC_NONE || + 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]); |