summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/sdlinput.cpp2
-rw-r--r--src/gui/windows/minimap.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp
index 05518e9a6..eca3b5733 100644
--- a/src/gui/sdlinput.cpp
+++ b/src/gui/sdlinput.cpp
@@ -127,6 +127,7 @@ MouseInput SDLInput::dequeueMouseInput()
void SDLInput::pushInput(const SDL_Event &event)
{
+ BLOCK_START("SDLInput::pushInput")
KeyInput keyInput;
MouseInput mouseInput;
@@ -286,6 +287,7 @@ void SDLInput::pushInput(const SDL_Event &event)
default:
break;
} // end switch
+ BLOCK_END("SDLInput::pushInput")
}
void SDLInput::convertKeyEventToKey(const SDL_Event &event, KeyInput &keyInput)
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp
index fbbb895f1..859d45b9e 100644
--- a/src/gui/windows/minimap.cpp
+++ b/src/gui/windows/minimap.cpp
@@ -112,6 +112,7 @@ void Minimap::deleteMapImage()
void Minimap::setMap(const Map *const map)
{
+ BLOCK_START("Minimap::setMap")
std::string caption;
if (map)
@@ -137,6 +138,7 @@ void Minimap::setMap(const Map *const map)
{
if (!isSticky())
setVisible(false);
+ BLOCK_END("Minimap::setMap")
return;
}
@@ -147,6 +149,7 @@ void Minimap::setMap(const Map *const map)
{
if (!isSticky())
setVisible(false);
+ BLOCK_END("Minimap::setMap")
return;
}
const int size = surface->h * surface->w;
@@ -225,6 +228,7 @@ void Minimap::setMap(const Map *const map)
if (!isSticky())
setVisible(false);
}
+ BLOCK_END("Minimap::setMap")
}
void Minimap::toggle()