gui/dboxinfo.cpp: add serial number to title

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6bcb85fa07
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-06-24 (Wed, 24 Jun 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2015-06-24 15:14:22 +03:00
parent 993db69903
commit 2221d2d3d8

View File

@@ -52,6 +52,7 @@
#include <driver/record.h>
#include <zapit/femanager.h>
#include <cs_api.h>
#include <sys/sysinfo.h>
#include <sys/vfs.h>
@@ -353,6 +354,11 @@ void CDBoxInfoWidget::paint()
title += ": ";
title + cpuinfo["machine"];
}
char ss[17];
sprintf(ss, "%016llx", cs_get_serial());
title += ", S/N ";
title += ss;
width = max(width, g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getRenderWidth(title, true));
CComponentsHeader header(x, ypos, width, hheight, title, NEUTRINO_ICON_SHELL);
header.paint(CC_SAVE_SCREEN_NO);