From 2221d2d3d8d3d00f9a569db5f970ac9322bf79f2 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 24 Jun 2015 15:14:22 +0300 Subject: [PATCH] gui/dboxinfo.cpp: add serial number to title Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/6bcb85fa07d3ae872c6f968f258310fb7aaa9692 Author: [CST] Focus Date: 2015-06-24 (Wed, 24 Jun 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/dboxinfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/dboxinfo.cpp b/src/gui/dboxinfo.cpp index 31aad56fc..becaa68aa 100644 --- a/src/gui/dboxinfo.cpp +++ b/src/gui/dboxinfo.cpp @@ -52,6 +52,7 @@ #include #include +#include #include #include @@ -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);