mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user