From a7d8597f058f8979d10e018eef59d9c95412f509 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 28 Apr 2013 00:27:11 +0200 Subject: [PATCH] CTextBox: user CORNER_ALL for corner type parameter to paint text background --- src/gui/widget/textbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/textbox.h b/src/gui/widget/textbox.h index 2b9377432..2974eade4 100644 --- a/src/gui/widget/textbox.h +++ b/src/gui/widget/textbox.h @@ -172,7 +172,7 @@ class CTextBox void enableBackgroundPaint(bool mode = true){m_nPaintBackground = mode;}; bool setText(const std::string* newText, int max_width = 0); void setTextColor(fb_pixel_t color_text){ m_textColor = color_text;}; - void setBackGroundRadius(const int radius, const int type){m_nBgRadius = radius; m_nBgRadiusType = type;}; + void setBackGroundRadius(const int radius, const int type = CORNER_ALL){m_nBgRadius = radius; m_nBgRadiusType = type;}; void setTextBorderWidth(int border); void setTextFont(Font* font_text); void setTextMode(const int text_mode){m_nMode = text_mode;};