mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
add resolution icon to infoviewer
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@694 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: eed43dde92
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-07-31 (Sat, 31 Jul 2010)
Origin message was:
------------------
-add resolution icon to infoviewer
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@694 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -448,7 +448,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
{
|
||||
char buf[100];
|
||||
//, buf2[100];
|
||||
int xres, yres, aspectRatio, framerate;
|
||||
int xres = 0, yres = 0, aspectRatio = 0, framerate;
|
||||
// paint labels
|
||||
int spaceoffset = 0,i = 0;
|
||||
int array[5]={g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_RESOLUTION)),
|
||||
@@ -462,9 +462,10 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
spaceoffset = array[i];
|
||||
}
|
||||
average_bitrate_offset = spaceoffset+=4;
|
||||
|
||||
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||
aspectRatio = videoDecoder->getAspectRatio();
|
||||
if(!(videoDecoder->getBlank())){
|
||||
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||
aspectRatio = videoDecoder->getAspectRatio();
|
||||
}
|
||||
//Video RESOLUTION
|
||||
ypos += iheight;
|
||||
sprintf ((char *) buf, "%s:",g_Locale->getText (LOCALE_STREAMINFO_RESOLUTION));
|
||||
@@ -483,6 +484,9 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
sprintf ((char *) buf, "%s:",g_Locale->getText (LOCALE_STREAMINFO_ARATIO));
|
||||
g_Font[font_info]->RenderString (xpos, ypos, width*2/3 - 10, buf, COL_MENUCONTENTDARK, 0, true); // UTF-8
|
||||
switch (aspectRatio) {
|
||||
case 0:
|
||||
sprintf ((char *) buf, "N/A");
|
||||
break;
|
||||
case 1:
|
||||
sprintf ((char *) buf, "4:3");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user