mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CComponentsButton: remove clear()-methode and initVarButton()
clear() killed all button object with all key values and key properties. So return values of messeage objects was killed. initVarButton() contains Oobjekt intits to already existant object. Bad idea, if we init again or pre init with NULL. Mode pass was missed.
This commit is contained in:
@@ -293,8 +293,7 @@ void CComponentsButton::paint(bool do_save_bg)
|
||||
|
||||
void CComponentsButton::enableShadow(int mode, const int& shadow_width, bool force_paint)
|
||||
{
|
||||
clear();
|
||||
shadow_w = shadow_width;
|
||||
shadow_force = force_paint;
|
||||
initVarButton(x, y, width, height, cc_btn_capt, cc_btn_icon, cc_parent, cc_item_selected, cc_item_enabled, mode, col_frame, col_body, col_shadow);
|
||||
shadow = mode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user