aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r--src/Utils.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp
index fec8bb9..67c739b 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -77,4 +77,8 @@ namespace QuickMedia {
strftime(time_str, sizeof(time_str) - 1, "%Y %b %d, %a %H:%M", &time_tm);
return time_str;
}
-} \ No newline at end of file
+
+ sf::Vector2f vec2f_round(float x, float y) {
+ return { int(x), int(y) };
+ }
+}