From 0a3101728aed4c71bcd103b407a6bf7d8ce48b32 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 4 May 2014 19:23:35 +0200 Subject: [PATCH] CComponentsFooter: simplified dimensions init for default height --- src/gui/components/cc_frm_footer.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/gui/components/cc_frm_footer.cpp b/src/gui/components/cc_frm_footer.cpp index d5e8abbfa..70105c7bf 100644 --- a/src/gui/components/cc_frm_footer.cpp +++ b/src/gui/components/cc_frm_footer.cpp @@ -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;