armbox: show grafical volume in vfd

This commit is contained in:
TangoCash
2017-10-12 00:36:45 +02:00
committed by Thilo Graf
parent a227dcb7e2
commit 3b5f5f3bfd

View File

@@ -429,6 +429,10 @@ void CLCD::showVolume(const char vol, const bool update)
SetIcons(SPARK_MUTE, 0); SetIcons(SPARK_MUTE, 0);
sprintf(s, vol_fmt[type], volume); sprintf(s, vol_fmt[type], volume);
} }
#if HAVE_ARM_HARDWARE
if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT)
sprintf(s,"%.*s", volume*g_info.hw_caps->display_xres/100, "================");
#endif
display(s); display(s);
vol_active = true; vol_active = true;
} }