summaryrefslogtreecommitdiff
path: root/src/gui/widgets/guitable.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/guitable.cpp
parent00ec60c1c0c3db8e3602e85dd152106f59f0c0e2 (diff)
downloadplus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.gz
plus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.bz2
plus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.xz
plus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.zip
Add strong typed bool Opaque.
Diffstat (limited to 'src/gui/widgets/guitable.cpp')
-rw-r--r--src/gui/widgets/guitable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp
index 7ab9674c5..9009b914c 100644
--- a/src/gui/widgets/guitable.cpp
+++ b/src/gui/widgets/guitable.cpp
@@ -41,7 +41,7 @@ float GuiTable::mAlpha = 1.0;
GuiTable::GuiTable(const Widget2 *const widget,
TableModel *const initial_model,
- const bool opacity) :
+ const Opaque opacity) :
Widget(widget),
MouseListener(),
KeyListener(),
@@ -235,7 +235,7 @@ void GuiTable::draw(Graphics *const graphics)
const int width = rect.width;
const int height = rect.height;
const int y = rect.y;
- if (mOpaque)
+ if (mOpaque == Opaque_true)
{
mBackgroundColor.a = CAST_U32(mAlpha * 255.0F);
graphics->setColor(mBackgroundColor);
@@ -353,7 +353,7 @@ void GuiTable::safeDraw(Graphics *const graphics)
const int width = rect.width;
const int height = rect.height;
const int y = rect.y;
- if (mOpaque)
+ if (mOpaque == Opaque_true)
{
mBackgroundColor.a = CAST_U32(mAlpha * 255.0F);
graphics->setColor(mBackgroundColor);