aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/graphics/Text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/Text.cpp b/src/graphics/Text.cpp
index ad6fed2..fa82a88 100644
--- a/src/graphics/Text.cpp
+++ b/src/graphics/Text.cpp
@@ -56,7 +56,7 @@ namespace mgl {
return { text.position.x, text.position.y };
}
- FloatRect Text::get_bounds() const {
+ FloatRect Text::get_bounds() {
mgl_vec2f bounds = mgl_text_get_bounds(&text);
FloatRect rect(get_position(), { bounds.x, bounds.y });
return rect;