CComponentsHeader: add member that allows switching to small size

Origin commit data
------------------
Commit: 78cdee08a8
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-08 (Sun, 08 Sep 2013)
This commit is contained in:
2013-09-08 22:28:45 +02:00
parent 114be445ee
commit 77bf33899e
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();