CComponentsFooter: don't use default parameters for privat member

Passed init values are better to see here.
This should fix wrong footer color too. See UPNP-Browser, color was not
applied here.
This commit is contained in:
2016-08-23 15:59:40 +02:00
parent 7c47b1a2a6
commit 9b9a8d1a78
2 changed files with 8 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ using namespace std;
CComponentsFooter::CComponentsFooter(CComponentsForm* parent) CComponentsFooter::CComponentsFooter(CComponentsForm* parent)
{ {
//CComponentsFooter //CComponentsFooter
initVarFooter(1, 1, 0, 0, 0, parent); initVarFooter(1, 1, 0, 0, 0, parent, CC_SHADOW_OFF, COL_MENUCONTENT_PLUS_6, COL_MENUFOOT_PLUS_0, COL_SHADOW_PLUS_0);
} }
CComponentsFooter::CComponentsFooter( const int& x_pos, const int& y_pos, const int& w, const int& h, CComponentsFooter::CComponentsFooter( const int& x_pos, const int& y_pos, const int& w, const int& h,

View File

@@ -60,13 +60,13 @@ Missing parameters are filled with default values and must be assigned afterward
class CComponentsFooter : public CComponentsHeader class CComponentsFooter : public CComponentsHeader
{ {
private: private:
void initVarFooter( const int& x_pos, const int& y_pos, const int& w, const int& h = 0, void initVarFooter( const int& x_pos, const int& y_pos, const int& w, const int& h,
const int& buttons = 0, const int& buttons,
CComponentsForm *parent = NULL, CComponentsForm *parent,
int shadow_mode = CC_SHADOW_OFF, int shadow_mode,
fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6, fb_pixel_t color_frame,
fb_pixel_t color_body = COL_MENUFOOT_PLUS_0, fb_pixel_t color_body,
fb_pixel_t color_shadow = COL_SHADOW_PLUS_0); fb_pixel_t color_shadow );
///show button frame and background, default false ///show button frame and background, default false
bool btn_contour; bool btn_contour;