summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/listbox.cpp2
-rw-r--r--src/gui/widgets/window.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/listbox.cpp b/src/gui/widgets/listbox.cpp
index 5010d3206..76eadff0a 100644
--- a/src/gui/widgets/listbox.cpp
+++ b/src/gui/widgets/listbox.cpp
@@ -299,7 +299,9 @@ void ListBox::adjustSize()
void ListBox::logic()
{
+ BLOCK_START("ListBox::logic")
adjustSize();
+ BLOCK_END("ListBox::logic")
}
int ListBox::getSelectionByMouse(const int y) const
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 12e2f74dd..542b0141f 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -1229,6 +1229,8 @@ bool Window::getOptionBool(const std::string &name) const
#ifdef USE_PROFILER
void Window::logic()
{
+ BLOCK_START("Window::logic")
logicChildren();
+ BLOCK_END("Window::logic")
}
#endif