simple_display.cpp: show mute at mute, not volumebar

Origin commit data
------------------
Commit: 255f35af34
Author: GetAway <get-away@t-online.de>
Date: 2020-07-09 (Thu, 09 Jul 2020)
This commit is contained in:
GetAway
2020-07-09 21:53:47 +02:00
committed by vanhofen
parent eb402051fa
commit 861a8886e6

View File

@@ -421,11 +421,12 @@ void CLCD::showVolume(const char vol, const bool update)
if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT)
SetIcons(SPARK_MUTE, 0);
sprintf(s, vol_fmt[type], volume);
}
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT)
sprintf(s,"%.*s", volume*g_info.hw_caps->display_xres/100, "================");
if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT)
sprintf(s,"%.*s", volume*g_info.hw_caps->display_xres/100, "================");
#endif
}
ShowText(s);
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
wake_up();