summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textpreview.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-24 22:36:00 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-24 22:36:00 +0300
commit52039744fa2e5e116548e5236cd8ba5f5d81702a (patch)
treed367514cfc2a00c0b1f181dbfb5a8c3b0ca5785d /src/gui/widgets/textpreview.cpp
parent35d796b927447760772d2720a221e21fdf9fd10e (diff)
downloadmanaverse-52039744fa2e5e116548e5236cd8ba5f5d81702a.tar.gz
manaverse-52039744fa2e5e116548e5236cd8ba5f5d81702a.tar.bz2
manaverse-52039744fa2e5e116548e5236cd8ba5f5d81702a.tar.xz
manaverse-52039744fa2e5e116548e5236cd8ba5f5d81702a.zip
Remove default parameters from widget2.
Diffstat (limited to 'src/gui/widgets/textpreview.cpp')
-rw-r--r--src/gui/widgets/textpreview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/textpreview.cpp b/src/gui/widgets/textpreview.cpp
index 53f84badc..4d90f1f9c 100644
--- a/src/gui/widgets/textpreview.cpp
+++ b/src/gui/widgets/textpreview.cpp
@@ -42,9 +42,9 @@ TextPreview::TextPreview(const Widget2 *const widget,
Widget(widget),
mFont(gui->getFont()),
mText(text),
- mTextColor(&getThemeColor(ThemeColorId::TEXT)),
- mTextColor2(&getThemeColor(ThemeColorId::TEXT_OUTLINE)),
- mBGColor(&getThemeColor(ThemeColorId::BACKGROUND)),
+ mTextColor(&getThemeColor(ThemeColorId::TEXT, 255U)),
+ mTextColor2(&getThemeColor(ThemeColorId::TEXT_OUTLINE, 255U)),
+ mBGColor(&getThemeColor(ThemeColorId::BACKGROUND, 255U)),
mTextBGColor(nullptr),
mPadding(0),
mTextAlpha(false),
@@ -120,7 +120,7 @@ void TextPreview::draw(Graphics *const graphics)
if (mOutline && mTextColor != mTextColor2)
{
- const Color &color2 = getThemeColor(ThemeColorId::OUTLINE, 255);
+ const Color &color2 = getThemeColor(ThemeColorId::OUTLINE, 255U);
mFont->drawString(graphics,
color1,
color2,