-add rec icon

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@707 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2010-08-05 15:11:40 +00:00
parent b5fd670813
commit bb2df84f63
3 changed files with 17 additions and 13 deletions

View File

@@ -162,7 +162,7 @@ void CImageInfo::paint_pig(int px, int py, int w, int h)
void CImageInfo::paintLine(int xpos, int font, const char* text)
{
char buf[100];
sprintf((char*) buf, "%s", text);
snprintf((char*) buf,sizeof(buf), "%s", text);
//g_Font[font]->RenderString(xpos, ypos, width-10, buf, COL_MENUCONTENT, 0, true);
g_Font[font]->RenderString(xpos, ypos, width-10, buf, COL_INFOBAR, 0, true);
}
@@ -197,7 +197,7 @@ void CImageInfo::paint()
static CFlashVersionInfo versionInfo(version);
const char * releaseCycle = versionInfo.getReleaseCycle();
sprintf((char*) imagedate, "%s %s", versionInfo.getDate(), versionInfo.getTime());
snprintf((char*) imagedate,sizeof(imagedate), "%s %s", versionInfo.getDate(), versionInfo.getTime());
ypos += iheight;
paintLine(xpos , font_info, g_Locale->getText(LOCALE_IMAGEINFO_IMAGE));