From 2ae9fb4a66981edb7c8efbda284c86abe1bf3701 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Thu, 12 Oct 2017 00:36:45 +0200 Subject: [PATCH] armbox: show grafical volume in vfd Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/3b5f5f3bfdb0faf691dd92c7eb654ed655f502c1 Author: TangoCash Date: 2017-10-12 (Thu, 12 Oct 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/simple_display.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index c7329188f..43a6b35e7 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -429,6 +429,10 @@ void CLCD::showVolume(const char vol, const bool update) SetIcons(SPARK_MUTE, 0); 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); vol_active = true; }