-add svn rev. to imageinfo

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@538 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2010-04-07 13:16:06 +00:00
parent 03b56ffd1c
commit ce744400e0
2 changed files with 15 additions and 4 deletions

View File

@@ -37,6 +37,8 @@
#include <system/flashtool.h>
#include <video_cs.h>
#include "svn_version.h"
#define SVN_REV "SVN Rev.:"
extern cVideo * videoDecoder;
extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
@@ -87,7 +89,10 @@ void CImageInfo::Init(void)
offset = tmpoffset;
}
}
int off_tmp = g_Font[font_info]->getRenderWidth(SVN_REV);
if(off_tmp > offset)
offset = off_tmp;
offset = offset + 15;
}
@@ -175,7 +180,6 @@ void CImageInfo::paint()
ypos += hheight;
ypos += (iheight >>1);
CConfigFile config('\t');
config.loadConfig("/.version");
@@ -191,7 +195,6 @@ void CImageInfo::paint()
sprintf((char*) imagedate, "%s %s", versionInfo.getDate(), versionInfo.getTime());
ypos += iheight;
paintLine(xpos , font_info, g_Locale->getText(LOCALE_IMAGEINFO_IMAGE));
paintLine(xpos+offset, font_info, imagename);
@@ -203,6 +206,10 @@ void CImageInfo::paint()
paintLine(xpos , font_info, g_Locale->getText(LOCALE_IMAGEINFO_VERSION));
paintLine(xpos+offset, font_info, releaseCycle);
ypos += iheight;
paintLine(xpos , font_info, SVN_REV);
paintLine(xpos+offset, font_info, SVNVERSION );
ypos += iheight;
paintLine(xpos , font_info, g_Locale->getText(LOCALE_IMAGEINFO_CREATOR));
paintLine(xpos+offset, font_info, creator);