summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index ff1ddbcd..bd439993 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -663,4 +663,8 @@ void CWindow::updateGroupOutputs() {
curr = curr->m_sGroupData.pNextWindow;
}
-} \ No newline at end of file
+}
+
+Vector2D CWindow::middle() {
+ return m_vRealPosition.goalv() + m_vRealSize.goalv() / 2.f;
+}