summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widget2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/widget2.h')
-rw-r--r--src/gui/widgets/widget2.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/widget2.h b/src/gui/widgets/widget2.h
index 0bf7ae87a..314b95105 100644
--- a/src/gui/widgets/widget2.h
+++ b/src/gui/widgets/widget2.h
@@ -26,7 +26,8 @@
class Widget2
{
public:
- Widget2()
+ Widget2() :
+ mPalette(1)
{
}
@@ -35,13 +36,13 @@ class Widget2
}
inline const gcn::Color &getThemeColor(const int type,
- const int alpha = 255)
+ const int alpha = 255) const
{
return Theme::getThemeColor(type * mPalette, alpha);
}
inline const gcn::Color &getThemeCharColor(const signed char c,
- bool &valid)
+ bool &valid) const
{
const int colorId = Theme::getIdByChar(c, valid);
if (valid)