CMenuItem: remove redundant member for background paint

It seems this method came with more functionality in past,
but it's currently not required in that Form.
This commit is contained in:
2014-02-26 17:57:12 +01:00
parent c34f25bb7d
commit 8a39f01a79
2 changed files with 1 additions and 13 deletions

View File

@@ -138,16 +138,6 @@ void CMenuItem::initItemColors(const bool select_mode)
} }
} }
void CMenuItem::paintItemBackground (const bool select_mode, const int &item_height)
{
CFrameBuffer *frameBuffer = CFrameBuffer::getInstance();
//FIXME what select_mode change here ??
if(select_mode)
frameBuffer->paintBoxRel(x, y, dx, item_height, item_bgcolor, RADIUS_LARGE);
else
frameBuffer->paintBoxRel(x, y, dx, item_height, item_bgcolor, RADIUS_LARGE);
}
void CMenuItem::paintItemCaption(const bool select_mode, const int &item_height, const char * left_text, const char * right_text, const fb_pixel_t right_bgcol) void CMenuItem::paintItemCaption(const bool select_mode, const int &item_height, const char * left_text, const char * right_text, const fb_pixel_t right_bgcol)
{ {
if (select_mode) if (select_mode)
@@ -209,7 +199,7 @@ void CMenuItem::prepareItem(const bool select_mode, const int &item_height)
initItemColors(select_mode); initItemColors(select_mode);
//paint item background //paint item background
paintItemBackground(select_mode, item_height); CFrameBuffer::getInstance()->paintBoxRel(x, y, dx, item_height, item_bgcolor, RADIUS_LARGE);
} }
void CMenuItem::paintItemSlider( const bool select_mode, const int &item_height, const int &optionvalue, const int &factor, const char * left_text, const char * right_text) void CMenuItem::paintItemSlider( const bool select_mode, const int &item_height, const int &optionvalue, const int &factor, const char * left_text, const char * right_text)

View File

@@ -162,8 +162,6 @@ class CMenuItem
virtual void paintItemButton(const bool select_mode, const int &item_height, const std::string& icon_Name = NEUTRINO_ICON_BUTTON_RIGHT); virtual void paintItemButton(const bool select_mode, const int &item_height, const std::string& icon_Name = NEUTRINO_ICON_BUTTON_RIGHT);
virtual void paintItemBackground (const bool select_mode, const int &item_height);
virtual void prepareItem(const bool select_mode, const int &item_height); virtual void prepareItem(const bool select_mode, const int &item_height);
virtual void setItemButton(const std::string& icon_Name, const bool is_select_button = false); virtual void setItemButton(const std::string& icon_Name, const bool is_select_button = false);