CComponentsFooter: simplified dimensions init for default height

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0a3101728a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-04 (Sun, 04 May 2014)


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

------------------
This commit was generated by Migit
This commit is contained in:
2014-05-04 19:23:35 +02:00
parent 1fa74157b2
commit 295f39a420

View File

@@ -67,12 +67,10 @@ void CComponentsFooter::initVarFooter( const int& x_pos, const int& y_pos, const
//init footer width
width = w == 0 ? frameBuffer->getScreenWidth(true) : w;
//init header height
cch_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE];
if (h > 0)
height = h;
else
height = cch_font->getHeight();
//init footer height
cch_font = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL];
height = max(h, cch_font->getHeight());
shadow = has_shadow;
col_frame = color_frame;