diff options
Diffstat (limited to 'src/gui/widgets/textpreview.cpp')
-rw-r--r-- | src/gui/widgets/textpreview.cpp | 4 |
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), |