mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
gui/dboxinfo.cpp: try to fix missing s/n digits,
fix x position
This commit is contained in:
@@ -324,7 +324,6 @@ void CDBoxInfoWidget::paint()
|
|||||||
nameWidth += diff;
|
nameWidth += diff;
|
||||||
}
|
}
|
||||||
height = h_max(height, 0);
|
height = h_max(height, 0);
|
||||||
x = getScreenStartX(width);
|
|
||||||
y = getScreenStartY(height);
|
y = getScreenStartY(height);
|
||||||
|
|
||||||
// fprintf(stderr, "CDBoxInfoWidget::CDBoxInfoWidget() x = %d, y = %d, width = %d height = %d\n", x, y, width, 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());
|
sprintf(ss, "%016llx", cs_get_serial());
|
||||||
title += ", S/N ";
|
title += ", S/N ";
|
||||||
title += ss;
|
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);
|
CComponentsHeader header(x, ypos, width, hheight, title, NEUTRINO_ICON_SHELL);
|
||||||
header.paint(CC_SAVE_SCREEN_NO);
|
header.paint(CC_SAVE_SCREEN_NO);
|
||||||
|
Reference in New Issue
Block a user