From 5764f3fc2cf7b4cb726fc68c29a3f08042a60dfa Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 1 Apr 2014 14:44:09 +0200 Subject: [PATCH] dboxinfo.cpp: shov inactive rec icon, if no rec is run --- src/gui/dboxinfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/dboxinfo.cpp b/src/gui/dboxinfo.cpp index 1850a88fc..6bdbbd4ca 100644 --- a/src/gui/dboxinfo.cpp +++ b/src/gui/dboxinfo.cpp @@ -41,6 +41,7 @@ #include #include #include +#include #include #include @@ -491,6 +492,7 @@ void CDBoxInfoWidget::paint() ypos += mheight; int width_i = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth("i", true); + CRecordManager * crm = CRecordManager::getInstance(); for (std::map::iterator it = mounts.begin(); it != mounts.end(); ++it) { struct statfs s; @@ -542,7 +544,7 @@ void CDBoxInfoWidget::paint() _w = width - (mpOffset + space); g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x + mpOffset + space, ypos+ mheight, _w, tmp, COL_MENUCONTENT_TEXT); if ((*it).second && icon_w>0 && icon_h>0) - frameBuffer->paintIcon(NEUTRINO_ICON_REC, x + nameWidth - icon_w + width_i/2, ypos + (mheight/2 - icon_h/2)); + frameBuffer->paintIcon(crm->RecordingStatus() ? NEUTRINO_ICON_REC:NEUTRINO_ICON_REC_GRAY, x + nameWidth - icon_w + width_i/2, ypos + (mheight/2 - icon_h/2)); } if (pbw > 8) /* smaller progressbar is not useful ;) */ {