summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textpreview.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-17 19:07:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-17 19:07:25 +0300
commite9fb9da5bf17d3402781eb5205be7d2f794887ee (patch)
tree729a7932fab668bcc2de180ebfe287e811f8e136 /src/gui/widgets/textpreview.cpp
parent00ec60c1c0c3db8e3602e85dd152106f59f0c0e2 (diff)
downloadmv-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.gz
mv-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.bz2
mv-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.xz
mv-e9fb9da5bf17d3402781eb5205be7d2f794887ee.zip
Add strong typed bool Opaque.
Diffstat (limited to 'src/gui/widgets/textpreview.cpp')
-rw-r--r--src/gui/widgets/textpreview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/textpreview.cpp b/src/gui/widgets/textpreview.cpp
index 12992fab5..6d2e38920 100644
--- a/src/gui/widgets/textpreview.cpp
+++ b/src/gui/widgets/textpreview.cpp
@@ -48,7 +48,7 @@ TextPreview::TextPreview(const Widget2 *const widget,
mTextBGColor(nullptr),
mPadding(0),
mTextAlpha(false),
- mOpaque(false),
+ mOpaque(Opaque_false),
mShadow(false),
mOutline(false)
{
@@ -93,7 +93,7 @@ void TextPreview::draw(Graphics *const graphics)
const int intAlpha = CAST_S32(mAlpha * 255.0F);
const int alpha = mTextAlpha ? intAlpha : 255;
- if (mOpaque)
+ if (mOpaque == Opaque_true)
{
graphics->setColor(Color(CAST_S32(mBGColor->r),
CAST_S32(mBGColor->g),