diff options
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 44709628e..914b34468 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -2793,6 +2793,19 @@ format_deblock_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud) } gchar* +format_drc_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud) +{ + if (val <= 0.0) + { + return g_strdup_printf("Off"); + } + else + { + return g_strdup_printf("%.1f", val); + } +} + +gchar* format_vquality_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud) { if (ghb_settings_get_boolean(ud->settings, "directqp")) |