mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
infoviewer: simplify and fix display of "HD" and "SD" icons
This commit is contained in:
@@ -497,6 +497,7 @@ void CInfoViewerBB::showIcon_Resolution()
|
|||||||
icon_name = NEUTRINO_ICON_RESOLUTION_1920;
|
icon_name = NEUTRINO_ICON_RESOLUTION_1920;
|
||||||
break;
|
break;
|
||||||
case 1088:
|
case 1088:
|
||||||
|
case 1080:
|
||||||
icon_name = NEUTRINO_ICON_RESOLUTION_1080;
|
icon_name = NEUTRINO_ICON_RESOLUTION_1080;
|
||||||
break;
|
break;
|
||||||
case 1440:
|
case 1440:
|
||||||
@@ -539,28 +540,12 @@ 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);
|
||||||
switch (yres) {
|
if (yres > 576)
|
||||||
case 1920:
|
|
||||||
case 1440:
|
|
||||||
case 1280:
|
|
||||||
case 1088:
|
|
||||||
case 720:
|
|
||||||
icon_name = NEUTRINO_ICON_RESOLUTION_HD;
|
icon_name = NEUTRINO_ICON_RESOLUTION_HD;
|
||||||
break;
|
else if (yres > 0)
|
||||||
case 704:
|
|
||||||
case 576:
|
|
||||||
case 544:
|
|
||||||
case 528:
|
|
||||||
case 480:
|
|
||||||
case 382:
|
|
||||||
case 352:
|
|
||||||
case 288:
|
|
||||||
icon_name = NEUTRINO_ICON_RESOLUTION_SD;
|
icon_name = NEUTRINO_ICON_RESOLUTION_SD;
|
||||||
break;
|
else
|
||||||
default:
|
|
||||||
icon_name = NEUTRINO_ICON_RESOLUTION_000;
|
icon_name = NEUTRINO_ICON_RESOLUTION_000;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
showBBIcons(CInfoViewerBB::ICON_RES, icon_name);
|
showBBIcons(CInfoViewerBB::ICON_RES, icon_name);
|
||||||
|
Reference in New Issue
Block a user