diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index 9808cb522..c1b41655e 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -875,7 +875,7 @@ bool CTextBox::clearScreenBuffer() return false; } -bool CTextBox::enableSaveScreen(bool mode) +bool CTextBox::enableSaveScreen(const bool& mode) { if (m_SaveScreen == mode) return false; @@ -939,7 +939,7 @@ int CTextBox::getMaxLineWidth(const std::string& text, Font* font) return len; } -void CTextBox::enableBackgroundPaint(bool mode) +void CTextBox::enableBackgroundPaint(const bool& mode) { m_nPaintBackground = mode; } diff --git a/src/gui/widget/textbox.h b/src/gui/widget/textbox.h index 63f06f9da..2b70ce933 100644 --- a/src/gui/widget/textbox.h +++ b/src/gui/widget/textbox.h @@ -181,10 +181,10 @@ class CTextBox : public sigc::trackable void refresh(void); void scrollPageDown(const int pages); void scrollPageUp(const int pages); - void enableBackgroundPaint(bool mode = true); + void enableBackgroundPaint(const bool& mode = true); void disableBackgroundPaint(); //enable screen saving behind chars, is required for transparent text paint, returns true if mode was changed - bool enableSaveScreen(bool mode = true); + bool enableSaveScreen(const bool& mode = true); bool setText(const std::string* newText, int max_width = 0, bool force_repaint = true); void setTextColor(fb_pixel_t color_text){ m_textColor = color_text;}; void setBackGroundRadius(const int radius, const int type = CORNER_ALL){m_nBgRadius = radius; m_nBgRadiusType = type;};