summaryrefslogtreecommitdiff
path: root/src/gui/widgets/basiccontainer2.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/basiccontainer2.cpp
parent00ec60c1c0c3db8e3602e85dd152106f59f0c0e2 (diff)
downloadmanaverse-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.gz
manaverse-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.bz2
manaverse-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.xz
manaverse-e9fb9da5bf17d3402781eb5205be7d2f794887ee.zip
Add strong typed bool Opaque.
Diffstat (limited to 'src/gui/widgets/basiccontainer2.cpp')
-rw-r--r--src/gui/widgets/basiccontainer2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/basiccontainer2.cpp b/src/gui/widgets/basiccontainer2.cpp
index 8ce16487b..6317a725b 100644
--- a/src/gui/widgets/basiccontainer2.cpp
+++ b/src/gui/widgets/basiccontainer2.cpp
@@ -73,7 +73,7 @@
BasicContainer2::BasicContainer2(const Widget2 *const widget) :
BasicContainer(widget),
- mOpaque(true)
+ mOpaque(Opaque_true)
{
}
@@ -84,7 +84,7 @@ BasicContainer2::~BasicContainer2()
void BasicContainer2::draw(Graphics *const graphics)
{
BLOCK_START("BasicContainer2::draw")
- if (mOpaque)
+ if (mOpaque == Opaque_true)
{
graphics->setColor(mBaseColor);
graphics->fillRectangle(Rect(0, 0,
@@ -98,7 +98,7 @@ void BasicContainer2::draw(Graphics *const graphics)
void BasicContainer2::safeDraw(Graphics *const graphics)
{
BLOCK_START("BasicContainer2::draw")
- if (isOpaque())
+ if (mOpaque == Opaque_true)
{
graphics->setColor(mBaseColor);
graphics->fillRectangle(Rect(0, 0,