From e9fb9da5bf17d3402781eb5205be7d2f794887ee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 Sep 2016 19:07:25 +0300 Subject: Add strong typed bool Opaque. --- src/gui/widgets/guitable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/guitable.cpp') 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); -- cgit v1.2.3-70-g09d2