diff options
author | jstebbins <[email protected]> | 2009-02-06 15:37:50 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-02-06 15:37:50 +0000 |
commit | 2b3a2836ba601220380021a02a08031fa64a80a8 (patch) | |
tree | f4b89f5a8f376d7deb9400fe189fe6f3e80cc28a /gtk/src/callbacks.c | |
parent | a43a189428cc45822110acfb5b7873d82e278f70 (diff) |
LinGui: add support for 0 DRC
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2123 b64f7644-9d1e-0410-96f1-a4d463321fa5
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")) |