CComponentsHeader: add member that allows switching to small size

This commit is contained in:
2013-09-08 22:28:45 +02:00
parent 4eb26988e9
commit 78cdee08a8
2 changed files with 12 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ void CComponentsHeader::initVarHeader()
corner_type = CORNER_TOP;
//init header height
cch_size_mode = CC_HEADER_SIZE_LARGE;
cch_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE];
height = cch_font->getHeight();
@@ -343,6 +344,9 @@ void CComponentsHeader::initCaption()
void CComponentsHeader::initCCItems()
{
//set size
cch_font = (cch_size_mode == CC_HEADER_SIZE_LARGE? g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE] : g_Font[SNeutrinoSettings::FONT_TYPE_MENU]);
//init icon
initIcon();