aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-21 10:27:16 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-21 10:27:16 +0100
commit296c80edd6727d6808ed0c98c001a8b456f1c037 (patch)
treead0731f1139c15a080fc2db60086681c405b21f8 /src/crepe/facade/SDLContext.cpp
parent0ba3392d8d5ef1f69bda831c8e2be2efa505b632 (diff)
implemented feedback
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r--src/crepe/facade/SDLContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index 8e2e8a2..17dcd04 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -233,7 +233,7 @@ void SDLContext::draw_text(const RenderText & data) {
vec2 size = text.dimensions * cam_aux_data.render_scale * data.transform.scale;
vec2 screen_pos = absoluut_pos;
- if (text.world_space) {
+ if (text.data.world_space) {
screen_pos = (screen_pos - cam_aux_data.cam_pos + (cam_aux_data.zoomed_viewport) / 2)
* cam_aux_data.render_scale
- size / 2 + cam_aux_data.bar_size;