mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
* CComponentsInfoBox: Switch parameter h and w in constructor
This commit is contained in:
@@ -192,7 +192,7 @@ void CComponentsDetailLine::hide()
|
|||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------
|
||||||
//sub class CComponentsInfoBox
|
//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;
|
x = x_pos;
|
||||||
y = y_pos;
|
y = y_pos;
|
||||||
|
@@ -87,6 +87,7 @@ class CComponentsDetailLine : public CComponents
|
|||||||
void setHMarkDown(const int& h_mark_down_){h_mark_down = h_mark_down_;};
|
void setHMarkDown(const int& h_mark_down_){h_mark_down = h_mark_down_;};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define INFO_BOX_Y_OFFSET 2
|
||||||
class CComponentsInfoBox : public CComponents
|
class CComponentsInfoBox : public CComponents
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
@@ -97,7 +98,7 @@ class CComponentsInfoBox : public CComponents
|
|||||||
std::vector<comp_fbdata_t> v_infobox_val;
|
std::vector<comp_fbdata_t> v_infobox_val;
|
||||||
|
|
||||||
public:
|
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);
|
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);
|
void paint(bool do_save_bg = true);
|
||||||
|
@@ -44,7 +44,6 @@
|
|||||||
#include <cctype>
|
#include <cctype>
|
||||||
|
|
||||||
#define ConnectLineBox_Width 16
|
#define ConnectLineBox_Width 16
|
||||||
#define INFO_BOX_Y_OFFSET 2
|
|
||||||
|
|
||||||
/* the following generic menu items are integrated into multiple menus at the same time */
|
/* the following generic menu items are integrated into multiple menus at the same time */
|
||||||
CMenuSeparator CGenericMenuSeparator;
|
CMenuSeparator CGenericMenuSeparator;
|
||||||
@@ -1097,7 +1096,7 @@ printf("paintHint: icon %s text %s\n", item->hintIcon.c_str(), g_Locale->getText
|
|||||||
details_line->paint();
|
details_line->paint();
|
||||||
|
|
||||||
if (info_box == NULL)
|
if (info_box == NULL)
|
||||||
info_box = new CComponentsInfoBox(x, ypos2, hint_height, iwidth);
|
info_box = new CComponentsInfoBox(x, ypos2, iwidth, hint_height);
|
||||||
else {
|
else {
|
||||||
info_box->setXPos(x);
|
info_box->setXPos(x);
|
||||||
info_box->setYPos(ypos2);
|
info_box->setYPos(ypos2);
|
||||||
|
Reference in New Issue
Block a user