Revert "* infoviewer_bb.cpp: Optimize display of simple resolution in the info bar"

This reverts commit 21a4195103.

already have a different version of this


Origin commit data
------------------
Branch: ni/coolstream
Commit: b48209241c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-11-22 (Thu, 22 Nov 2012)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-11-22 22:37:19 +01:00
parent e08ca85e92
commit f9efeee7fc

View File

@@ -542,12 +542,29 @@ void CInfoViewerBB::showIcon_Resolution()
}
if (g_settings.infobar_show_res == 1) {//show simple resolution icon on infobar
videoDecoder->getPictureInfo(xres, yres, framerate);
if (yres > 704)
switch (yres) {
case 1920:
case 1440:
case 1280:
case 1080:
case 1088:
case 720:
icon_name = NEUTRINO_ICON_RESOLUTION_HD;
else if (yres >= 288)
break;
case 704:
case 576:
case 544:
case 528:
case 480:
case 382:
case 352:
case 288:
icon_name = NEUTRINO_ICON_RESOLUTION_SD;
else
break;
default:
icon_name = NEUTRINO_ICON_RESOLUTION_000;
break;
}
}
}
showBBIcons(CInfoViewerBB::ICON_RES, icon_name);