mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
NI \o/
Origin commit data
------------------
Commit: d6b3754c6f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-05-19 (Thu, 19 May 2016)
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
#include <driver/record.h>
|
||||
|
||||
#include <zapit/femanager.h>
|
||||
#include <cs_api.h>
|
||||
//NI #include <cs_api.h>
|
||||
|
||||
#include <sys/sysinfo.h>
|
||||
#include <sys/vfs.h>
|
||||
@@ -360,11 +360,14 @@ void CDBoxInfoWidget::paint()
|
||||
title += ": ";
|
||||
title + cpuinfo["machine"];
|
||||
}
|
||||
//NI
|
||||
#if 0
|
||||
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) + 50);
|
||||
#endif
|
||||
x = getScreenStartX(width);
|
||||
|
||||
if (!header)
|
||||
@@ -453,12 +456,14 @@ void CDBoxInfoWidget::paint()
|
||||
unsigned int h = cpuload_y1 - cpuload_y0;
|
||||
cpuload_y0 += y;
|
||||
cpuload_y1 += y;
|
||||
frameBuffer->paintBoxRel(x + offsetw, cpuload_y0, pbw, h, COL_MENUCONTENT_PLUS_2);
|
||||
//NI frameBuffer->paintBoxRel(x + offsetw, cpuload_y0, pbw, h, COL_MENUCONTENT_PLUS_2);
|
||||
frameBuffer->paintBoxRel(x + offsetw, cpuload_y0, pbw, h, COL_MENUHEAD_PLUS_0); //NI
|
||||
|
||||
int off = std::max(0, (int)sysload->data_avail - pbw);
|
||||
for (unsigned int i = 0; i < sysload->data_avail - off; i++) {
|
||||
if ((sysload->data[i + off] * h / 1000) > 0)
|
||||
frameBuffer->paintVLine(x+offsetw + i, cpuload_y1 - sysload->data[i + off] * h / 1000, cpuload_y1, COL_MENUCONTENT_PLUS_7);
|
||||
//NI frameBuffer->paintVLine(x+offsetw + i, cpuload_y1 - sysload->data[i + off] * h / 1000, cpuload_y1, COL_MENUCONTENT_PLUS_7);
|
||||
frameBuffer->paintVLine(x+offsetw + i, cpuload_y1 - sysload->data[i + off] * h / 1000, cpuload_y1, COL_MENUHEAD_TEXT); //NI
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user