mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
- add UHD icons to infoviewer
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -590,6 +590,9 @@ void CInfoViewerBB::showIcon_Resolution()
|
|||||||
if (g_settings.infobar_show_res == 0) {//show resolution icon on infobar
|
if (g_settings.infobar_show_res == 0) {//show resolution icon on infobar
|
||||||
videoDecoder->getPictureInfo(xres, yres, framerate);
|
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||||
switch (yres) {
|
switch (yres) {
|
||||||
|
case 2160:
|
||||||
|
icon_name = NEUTRINO_ICON_RESOLUTION_2160;
|
||||||
|
break;
|
||||||
case 1920:
|
case 1920:
|
||||||
icon_name = NEUTRINO_ICON_RESOLUTION_1920;
|
icon_name = NEUTRINO_ICON_RESOLUTION_1920;
|
||||||
break;
|
break;
|
||||||
@@ -637,7 +640,9 @@ void CInfoViewerBB::showIcon_Resolution()
|
|||||||
}
|
}
|
||||||
if (g_settings.infobar_show_res == 1) {//show simple resolution icon on infobar
|
if (g_settings.infobar_show_res == 1) {//show simple resolution icon on infobar
|
||||||
videoDecoder->getPictureInfo(xres, yres, framerate);
|
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||||
if (yres > 576)
|
if (yres > 1088)
|
||||||
|
icon_name = NEUTRINO_ICON_RESOLUTION_UHD;
|
||||||
|
else if (yres > 576)
|
||||||
icon_name = NEUTRINO_ICON_RESOLUTION_HD;
|
icon_name = NEUTRINO_ICON_RESOLUTION_HD;
|
||||||
else if (yres > 0)
|
else if (yres > 0)
|
||||||
icon_name = NEUTRINO_ICON_RESOLUTION_SD;
|
icon_name = NEUTRINO_ICON_RESOLUTION_SD;
|
||||||
|
@@ -149,6 +149,7 @@
|
|||||||
#define NEUTRINO_ICON_LCD "lcd"
|
#define NEUTRINO_ICON_LCD "lcd"
|
||||||
#define NEUTRINO_ICON_VOLUME "volume"
|
#define NEUTRINO_ICON_VOLUME "volume"
|
||||||
#define NEUTRINO_ICON_RCLOCK "rclock"
|
#define NEUTRINO_ICON_RCLOCK "rclock"
|
||||||
|
#define NEUTRINO_ICON_RESOLUTION_2160 "res_2160"
|
||||||
#define NEUTRINO_ICON_RESOLUTION_1920 "res_1920"
|
#define NEUTRINO_ICON_RESOLUTION_1920 "res_1920"
|
||||||
#define NEUTRINO_ICON_RESOLUTION_1080 "res_1080"
|
#define NEUTRINO_ICON_RESOLUTION_1080 "res_1080"
|
||||||
#define NEUTRINO_ICON_RESOLUTION_1440 "res_1440"
|
#define NEUTRINO_ICON_RESOLUTION_1440 "res_1440"
|
||||||
@@ -163,6 +164,7 @@
|
|||||||
#define NEUTRINO_ICON_RESOLUTION_352 "res_352"
|
#define NEUTRINO_ICON_RESOLUTION_352 "res_352"
|
||||||
#define NEUTRINO_ICON_RESOLUTION_288 "res_288"
|
#define NEUTRINO_ICON_RESOLUTION_288 "res_288"
|
||||||
#define NEUTRINO_ICON_RESOLUTION_000 "res_000"
|
#define NEUTRINO_ICON_RESOLUTION_000 "res_000"
|
||||||
|
#define NEUTRINO_ICON_RESOLUTION_UHD "res_uhd"
|
||||||
#define NEUTRINO_ICON_RESOLUTION_HD "res_hd"
|
#define NEUTRINO_ICON_RESOLUTION_HD "res_hd"
|
||||||
#define NEUTRINO_ICON_RESOLUTION_SD "res_sd"
|
#define NEUTRINO_ICON_RESOLUTION_SD "res_sd"
|
||||||
#define NEUTRINO_ICON_PERSONALIZE "personalize"
|
#define NEUTRINO_ICON_PERSONALIZE "personalize"
|
||||||
|
Reference in New Issue
Block a user