From 3a54fba0c3f6d0994fbc3bafc69b42e4ee6b7a4b Mon Sep 17 00:00:00 2001 From: Marc ROGER de CAMPAGNOLLE Date: Sun, 22 Nov 2015 18:02:45 +0100 Subject: [PATCH] Update vumeter.c --- vumeter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vumeter.c b/vumeter.c index 8e64d51..02fdb7e 100644 --- a/vumeter.c +++ b/vumeter.c @@ -44,6 +44,7 @@ #define STR_GRADIENT_VERTICAL "Vertical" #define STR_GRADIENT_HORIZONTAL "Horizontal" +#define CONFSTR_MS_STYLE "vu_meter.style" #define CONFSTR_MS_REFRESH_INTERVAL "vu_meter.refresh_interval" #define CONFSTR_MS_DB_RANGE "vu_meter.db_range" #define CONFSTR_MS_ENABLE_HGRID "vu_meter.enable_hgrid" @@ -112,6 +113,7 @@ static uint32_t CONFIG_COLOR_HGRID32 = 0xff666666; static void save_config (void) { + deadbeef->conf_set_int (CONFSTR_MS_STYLE, CONFIG_STYLE); deadbeef->conf_set_int (CONFSTR_MS_REFRESH_INTERVAL, CONFIG_REFRESH_INTERVAL); deadbeef->conf_set_int (CONFSTR_MS_DB_RANGE, CONFIG_DB_RANGE); deadbeef->conf_set_int (CONFSTR_MS_ENABLE_HGRID, CONFIG_ENABLE_HGRID); @@ -147,6 +149,7 @@ static void load_config (void) { deadbeef->conf_lock (); + CONFIG_STYLE = deadbeef->conf_get_int (CONFSTR_MS_STYLE, 0); CONFIG_GRADIENT_ORIENTATION = deadbeef->conf_get_int (CONFSTR_MS_GRADIENT_ORIENTATION, 0); CONFIG_DB_RANGE = deadbeef->conf_get_int (CONFSTR_MS_DB_RANGE, 70); CONFIG_ENABLE_HGRID = deadbeef->conf_get_int (CONFSTR_MS_ENABLE_HGRID, 1);