From f219da23bf5f1ee23a3ef3677d71cd074fb4cbed Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 27 Jan 2017 15:49:59 +0100 Subject: [PATCH] CComponentsText: add missing parameters to kill() methode --- src/gui/components/cc_item_text.cpp | 5 +++-- src/gui/components/cc_item_text.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/components/cc_item_text.cpp b/src/gui/components/cc_item_text.cpp index bd37e0d37..3c1b61e13 100644 --- a/src/gui/components/cc_item_text.cpp +++ b/src/gui/components/cc_item_text.cpp @@ -298,13 +298,14 @@ void CComponentsText::hide() ct_force_text_paint = true; } -void CComponentsText::kill() +void CComponentsText::kill(const fb_pixel_t& bg_color, const int& corner_radius, const int& fblayer_type) { if (ct_textbox) ct_textbox->hide(); ct_old_text.clear(); - CCDraw::kill(); + force_paint_bg = true; + CCDraw::kill(bg_color, corner_radius, fblayer_type); ct_force_text_paint = true; } diff --git a/src/gui/components/cc_item_text.h b/src/gui/components/cc_item_text.h index f744efba2..1de07d08c 100644 --- a/src/gui/components/cc_item_text.h +++ b/src/gui/components/cc_item_text.h @@ -139,7 +139,7 @@ class CComponentsText : public CCTextScreen, public CComponentsItem ///hide textbox void hide(); ///remove textbox from screen - void kill(); + void kill(const fb_pixel_t& bg_color = COL_BACKGROUND_PLUS_0, const int& corner_radius = -1, const int& fblayer_type = CC_FBDATA_TYPES); ///paint text box, parameter do_save_bg: default = true, causes fill of backckrond pixel buffer void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);