- infoviewer.cpp: more suitable icons for tuner

This commit is contained in:
svenhoefer
2012-05-14 21:56:16 +02:00
parent 68bd27676f
commit 3b1d063c04
5 changed files with 14 additions and 3 deletions

View File

@@ -185,6 +185,8 @@ install_DATA = \
suomi.png \ suomi.png \
svenska.png \ svenska.png \
timer.png \ timer.png \
tuner_1.png \
tuner_2.png \
up.png \ up.png \
upnp.png \ upnp.png \
via_green.png \ via_green.png \

BIN
data/icons/tuner_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

BIN
data/icons/tuner_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

View File

@@ -488,11 +488,18 @@ void CInfoViewer::paintshowButtonBar()
void CInfoViewer::showIcon_Tuner() const void CInfoViewer::showIcon_Tuner() const
{ {
//FIXME test
int tuner_x = BoxEndX - 2 - (((g_settings.casystem_display !=2) ? 0:icon_crypt_width )+ icon_xres_width + 2*icon_large_width + 3*icon_small_width + ((g_settings.casystem_display !=2) ?5:6)*2); int tuner_x = BoxEndX - 2 - (((g_settings.casystem_display !=2) ? 0:icon_crypt_width )+ icon_xres_width + 2*icon_large_width + 3*icon_small_width + ((g_settings.casystem_display !=2) ?5:6)*2);
int tuner = 1 + CFEManager::getInstance()->getLiveFE()->getNumber(); int tuner = 1 + CFEManager::getInstance()->getLiveFE()->getNumber();
char icon_name[3]; const char *icon_name = NULL;
snprintf(icon_name, 3, "%d", tuner); switch (tuner) {
case 2:
icon_name = NEUTRINO_ICON_TUNER_2;
break;
case 1:
default:
icon_name = NEUTRINO_ICON_TUNER_1;
break;
}
frameBuffer->paintIcon(icon_name, tuner_x, BBarY, InfoHeightY_Info); frameBuffer->paintIcon(icon_name, tuner_x, BBarY, InfoHeightY_Info);
} }

View File

@@ -110,6 +110,8 @@
#define NEUTRINO_ICON_SHELL "shell" #define NEUTRINO_ICON_SHELL "shell"
#define NEUTRINO_ICON_STREAMING "streaming" #define NEUTRINO_ICON_STREAMING "streaming"
#define NEUTRINO_ICON_TIMER "timer" #define NEUTRINO_ICON_TIMER "timer"
#define NEUTRINO_ICON_TUNER_1 "tuner_1"
#define NEUTRINO_ICON_TUNER_2 "tuner_2"
#define NEUTRINO_ICON_UPDATE "softupdate" #define NEUTRINO_ICON_UPDATE "softupdate"
#define NEUTRINO_ICON_UPNP "upnp" #define NEUTRINO_ICON_UPNP "upnp"
#define NEUTRINO_ICON_VIDEO "video" #define NEUTRINO_ICON_VIDEO "video"