mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
gui/dboxinfo.cpp: try to fix missing s/n digits,
fix x position
Origin commit data
------------------
Commit: c796891165
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2016-01-29 (Fri, 29 Jan 2016)
This commit is contained in:
@@ -324,7 +324,6 @@ void CDBoxInfoWidget::paint()
|
||||
nameWidth += diff;
|
||||
}
|
||||
height = h_max(height, 0);
|
||||
x = getScreenStartX(width);
|
||||
y = getScreenStartY(height);
|
||||
|
||||
// fprintf(stderr, "CDBoxInfoWidget::CDBoxInfoWidget() x = %d, y = %d, width = %d height = %d\n", x, y, width, height);
|
||||
@@ -358,7 +357,8 @@ void CDBoxInfoWidget::paint()
|
||||
sprintf(ss, "%016llx", cs_get_serial());
|
||||
title += ", S/N ";
|
||||
title += ss;
|
||||
width = max(width, g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getRenderWidth(title, true));
|
||||
width = max(width, g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getRenderWidth(title, true) + 50);
|
||||
x = getScreenStartX(width);
|
||||
|
||||
CComponentsHeader header(x, ypos, width, hheight, title, NEUTRINO_ICON_SHELL);
|
||||
header.paint(CC_SAVE_SCREEN_NO);
|
||||
|
Reference in New Issue
Block a user