CComponentsHeader: add member that allows switching to small size

Origin commit data
------------------
Branch: ni/coolstream
Commit: 78cdee08a8
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-08 (Sun, 08 Sep 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2013-09-08 22:28:45 +02:00
parent a4bebc144f
commit c5b9563d60
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();