summaryrefslogtreecommitdiff
path: root/src/gui/windows/minimap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r--src/gui/windows/minimap.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp
index 6b2a8547a..279b3e840 100644
--- a/src/gui/windows/minimap.cpp
+++ b/src/gui/windows/minimap.cpp
@@ -83,7 +83,7 @@ Minimap::Minimap() :
setSticky(false);
loadWindowState();
- setVisible(mShow, isSticky());
+ setVisible(fromBool(mShow, Visible), isSticky());
enableVisibleSound(true);
}
@@ -134,7 +134,7 @@ void Minimap::setMap(const Map *const map)
if (!surface)
{
if (!isSticky())
- setVisible(false);
+ setVisible(Visible_false);
BLOCK_END("Minimap::setMap")
return;
}
@@ -145,7 +145,7 @@ void Minimap::setMap(const Map *const map)
if (!data)
{
if (!isSticky())
- setVisible(false);
+ setVisible(Visible_false);
BLOCK_END("Minimap::setMap")
return;
}
@@ -218,19 +218,19 @@ void Minimap::setMap(const Map *const map)
resetToDefaultSize();
if (mShow)
- setVisible(true);
+ setVisible(Visible_true);
}
else
{
if (!isSticky())
- setVisible(false);
+ setVisible(Visible_false);
}
BLOCK_END("Minimap::setMap")
}
void Minimap::toggle()
{
- setVisible(!isWindowVisible(), isSticky());
+ setVisible(fromBool(!isWindowVisible(), Visible), isSticky());
mShow = isWindowVisible();
}