From 87c2b3ed74e5c487473d49d9c8958fd884773f94 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 ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/6bcb85fa07d3ae872c6f968f258310fb7aaa9692 Author: [CST] Focus Date: 2015-06-24 (Wed, 24 Jun 2015) --- 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);