From 861a8886e64da8c38d8e8548f7ea720d0f622598 Mon Sep 17 00:00:00 2001 From: GetAway Date: Thu, 9 Jul 2020 21:53:47 +0200 Subject: [PATCH] simple_display.cpp: show mute at mute, not volumebar Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/255f35af348cbe31f98d7724e99bacdfc401a209 Author: GetAway Date: 2020-07-09 (Thu, 09 Jul 2020) --- src/driver/simple_display.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index 4d0dabdcb..6a4a0d21f 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -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();