summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/option_select.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index feed1dc2db..a1e41f10e8 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -113,11 +113,10 @@ const char *option_get_valuestring(const struct settings_list *setting,
{
char sign = ' ';
const char *unit = sound_unit(setting->sound_setting->setting);
+ int val = sound_val2phys(setting->sound_setting->setting, (int)temp_var);
if (sound_numdecimals(setting->sound_setting->setting))
{
int integer, dec;
- int val = sound_val2phys(setting->sound_setting->setting,
- (int)temp_var);
if(val < 0)
{
sign = '-';
@@ -128,7 +127,7 @@ const char *option_get_valuestring(const struct settings_list *setting,
snprintf(buffer, buf_len, "%c%d.%d %s", sign, integer, dec, unit);
}
else
- snprintf(buffer, buf_len, "%d %s", (int)temp_var, unit);
+ snprintf(buffer, buf_len, "%d %s", val, unit);
}
else if ((setting->flags & F_CHOICE_SETTING) == F_CHOICE_SETTING)
{