summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-10-31 09:35:27 -0700
committerGitHub <[email protected]>2016-10-31 09:35:27 -0700
commit00eeae7591023ed47a5cd6b90bf7b11ac1bfae41 (patch)
tree54cfe6bd3dced28944974448f888fda63f51a274 /gtk/src/hb-backend.c
parent0a913f088db821b964edfd5a711292cc6069cfa9 (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/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index a88afec50..5f5076a49 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -120,10 +120,10 @@ combo_opts_t when_complete_opts =
static options_map_t d_par_opts[] =
{
- {N_("Off"), "off", 0},
- {N_("Strict"), "strict", 1},
- {N_("Loose"), "loose", 2},
- {N_("Custom"), "custom", 3},
+ {N_("Off"), "off", HB_ANAMORPHIC_NONE},
+ {N_("Automatic"), "auto", HB_ANAMORPHIC_AUTO},
+ {N_("Loose"), "loose", HB_ANAMORPHIC_LOOSE},
+ {N_("Custom"), "custom", HB_ANAMORPHIC_CUSTOM},
};
combo_opts_t par_opts =
{
@@ -3404,8 +3404,6 @@ ghb_set_scale_settings(GhbValue *settings, gint mode)
gint max_width = 0;
gint max_height = 0;
- g_debug("ghb_set_scale ()\n");
-
pic_par = ghb_settings_combo_int(settings, "PicturePAR");
if (pic_par == HB_ANAMORPHIC_STRICT)
{
@@ -3413,7 +3411,9 @@ ghb_set_scale_settings(GhbValue *settings, gint mode)
ghb_dict_set_int(settings, "PictureModulus", 2);
ghb_dict_set_bool(settings, "PictureLooseCrop", TRUE);
}
- if (pic_par == HB_ANAMORPHIC_STRICT || pic_par == HB_ANAMORPHIC_LOOSE)
+ if (pic_par == HB_ANAMORPHIC_STRICT ||
+ pic_par == HB_ANAMORPHIC_AUTO ||
+ pic_par == HB_ANAMORPHIC_LOOSE)
{
ghb_dict_set_bool(settings, "PictureKeepRatio", TRUE);
}