tmdb: Add star icons (THX flk)

This commit is contained in:
M. Liebmann
2016-03-04 13:57:37 +01:00
parent c5d1120f9f
commit e0b952ece3
5 changed files with 9 additions and 7 deletions

View File

@@ -244,6 +244,8 @@ install_DATA += \
shell.png \ shell.png \
shutdown.jpg \ shutdown.jpg \
softupdate.png \ softupdate.png \
star-off.png \
star-on.png \
start.jpg \ start.jpg \
streaming.png \ streaming.png \
subt.png \ subt.png \

BIN
data/icons/star-off.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
data/icons/star-on.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -281,13 +281,11 @@ void CEpgData::showText( int startPos, int ypos, bool cover, bool fullClear)
if (stars > 0 && startPos == 0){ if (stars > 0 && startPos == 0){
int icon_w,icon_h; int icon_w,icon_h;
frameBuffer->getIconSize(ICONSDIR"/star-off.png", &icon_w, &icon_h); frameBuffer->getIconSize(NEUTRINO_ICON_STAR_OFF, &icon_w, &icon_h);
for (int i=1; i < 11;i++) { for (int i = 0; i < 10; i++)
frameBuffer->paintIcon(ICONSDIR"/star-off.png", sx+3+cover_offset+i*icon_w+3, ypos+3); frameBuffer->paintIcon(NEUTRINO_ICON_STAR_OFF, sx+10+cover_offset + i*(icon_w+3), ypos+3);
} for (int i = 0; i < stars; i++)
for (int i=1; i < stars+1;i++) { frameBuffer->paintIcon(NEUTRINO_ICON_STAR_ON, sx+10+cover_offset + i*(icon_w+3), ypos+3);
frameBuffer->paintIcon(ICONSDIR"/star-on.png", sx+3+cover_offset+i*icon_w+3, ypos+3);
}
} }
int sbc = ((textSize - 1)/ medlinecount) + 1; int sbc = ((textSize - 1)/ medlinecount) + 1;

View File

@@ -179,6 +179,8 @@
#define NEUTRINO_ICON_RECORDING_EVENT_MARKER "rec_event_marker" #define NEUTRINO_ICON_RECORDING_EVENT_MARKER "rec_event_marker"
#define NEUTRINO_ICON_ZAP "zap" #define NEUTRINO_ICON_ZAP "zap"
#define NEUTRINO_ICON_PIP "pip" #define NEUTRINO_ICON_PIP "pip"
#define NEUTRINO_ICON_STAR_ON "star-on"
#define NEUTRINO_ICON_STAR_OFF "star-off"
#define DUMMY_ICON "dummy" #define DUMMY_ICON "dummy"