fix git build

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@539 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2010-04-08 13:09:08 +00:00
parent ce744400e0
commit adc62e8ebe
2 changed files with 20 additions and 5 deletions

View File

@@ -39,6 +39,7 @@
#include "svn_version.h"
#define SVN_REV "SVN Rev.:"
#define GIT_REV "GIT Build:"
extern cVideo * videoDecoder;
extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
@@ -89,7 +90,11 @@ void CImageInfo::Init(void)
offset = tmpoffset;
}
}
#ifdef SVNVERSION
int off_tmp = g_Font[font_info]->getRenderWidth(SVN_REV);
#else
int off_tmp = g_Font[font_info]->getRenderWidth(GIT_REV);
#endif
if(off_tmp > offset)
offset = off_tmp;
@@ -207,9 +212,13 @@ void CImageInfo::paint()
paintLine(xpos+offset, font_info, releaseCycle);
ypos += iheight;
#ifdef SVNVERSION
paintLine(xpos , font_info, SVN_REV);
paintLine(xpos+offset, font_info, SVNVERSION );
#else
paintLine(xpos , font_info, GIT_REV);
paintLine(xpos+offset, font_info, BUILT_DATE );
#endif
ypos += iheight;
paintLine(xpos , font_info, g_Locale->getText(LOCALE_IMAGEINFO_CREATOR));
paintLine(xpos+offset, font_info, creator);