diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-28 00:55:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-28 00:55:13 +0300 |
commit | 01a0e4b658241cc3dbd8a5d11d34a6de48dab159 (patch) | |
tree | 37294c079b9a05768b7380f7595784eb73485769 /src/gui/windows/minimap.cpp | |
parent | 072b727ae4d072d6c84f3331d78ca5a2ac76d271 (diff) | |
download | manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.gz manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.bz2 manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.xz manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.zip |
Add strong typed bool type Visible.
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r-- | src/gui/windows/minimap.cpp | 12 |
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(); } |