summaryrefslogtreecommitdiff
path: root/src/gui/windows/minimap.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-25 18:45:59 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-25 18:45:59 +0300
commit7369332bb0a6d219cb2415a0b5e65bf2825da349 (patch)
treeef09d6526d0804e7370d41269e2e235d0c34cf6e /src/gui/windows/minimap.cpp
parent6b8cc23d56d0f46bb8b53bbfb3468adea6a7dd77 (diff)
downloadmanaverse-7369332bb0a6d219cb2415a0b5e65bf2825da349.tar.gz
manaverse-7369332bb0a6d219cb2415a0b5e65bf2825da349.tar.bz2
manaverse-7369332bb0a6d219cb2415a0b5e65bf2825da349.tar.xz
manaverse-7369332bb0a6d219cb2415a0b5e65bf2825da349.zip
Add missing safeDraw to some windows.
Without it drawing code can mix safe and not safe drawing.
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r--src/gui/windows/minimap.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp
index bdf9c37be..6b2a8547a 100644
--- a/src/gui/windows/minimap.cpp
+++ b/src/gui/windows/minimap.cpp
@@ -237,8 +237,21 @@ void Minimap::toggle()
void Minimap::draw(Graphics *graphics)
{
BLOCK_START("Minimap::draw")
+
Window::draw(graphics);
+ draw2(graphics);
+}
+
+void Minimap::safeDraw(Graphics *graphics)
+{
+ BLOCK_START("Minimap::draw")
+
+ Window::safeDraw(graphics);
+ draw2(graphics);
+}
+void Minimap::draw2(Graphics *const graphics)
+{
if (!userPalette || !localPlayer || !viewport)
{
BLOCK_END("Minimap::draw")