* CComponentsInfoBox: Switch parameter h and w in constructor

This commit is contained in:
micha-bbg
2012-07-22 16:14:29 +02:00
parent cb375cc214
commit a5d8bd4e13
3 changed files with 4 additions and 4 deletions

View File

@@ -192,7 +192,7 @@ void CComponentsDetailLine::hide()
//-------------------------------------------------------------------------------------------------------
//sub class CComponentsInfoBox
CComponentsInfoBox::CComponentsInfoBox(const int x_pos, const int y_pos, const int h, const int w, bool has_shadow, fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow)
CComponentsInfoBox::CComponentsInfoBox(const int x_pos, const int y_pos, const int w, const int h, bool has_shadow, fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow)
{
x = x_pos;
y = y_pos;

View File

@@ -87,6 +87,7 @@ class CComponentsDetailLine : public CComponents
void setHMarkDown(const int& h_mark_down_){h_mark_down = h_mark_down_;};
};
#define INFO_BOX_Y_OFFSET 2
class CComponentsInfoBox : public CComponents
{
private:
@@ -97,7 +98,7 @@ class CComponentsInfoBox : public CComponents
std::vector<comp_fbdata_t> v_infobox_val;
public:
CComponentsInfoBox( const int x_pos, const int y_pos, const int h, const int w, bool has_shadow = true,
CComponentsInfoBox( const int x_pos, const int y_pos, const int w, const int h, bool has_shadow = true,
fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6, fb_pixel_t color_body = COL_MENUCONTENTDARK_PLUS_0,fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0);
void paint(bool do_save_bg = true);

View File

@@ -44,7 +44,6 @@
#include <cctype>
#define ConnectLineBox_Width 16
#define INFO_BOX_Y_OFFSET 2
/* the following generic menu items are integrated into multiple menus at the same time */
CMenuSeparator CGenericMenuSeparator;
@@ -1097,7 +1096,7 @@ printf("paintHint: icon %s text %s\n", item->hintIcon.c_str(), g_Locale->getText
details_line->paint();
if (info_box == NULL)
info_box = new CComponentsInfoBox(x, ypos2, hint_height, iwidth);
info_box = new CComponentsInfoBox(x, ypos2, iwidth, hint_height);
else {
info_box->setXPos(x);
info_box->setYPos(ypos2);