aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-19 20:17:28 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-19 20:17:28 +0100
commit3e7a0a5a2c5ad14ee388f3ac460bf63bdb6ccfd5 (patch)
tree8bb56303e780e1992768a1433cf99ae4fd884907 /src/crepe/facade/SDLContext.cpp
parentd2c8a2bf07275f5458c576990b8742a710b15013 (diff)
parent8cd4b07e866d33589a7218367a5639b602c40c67 (diff)
updated nan
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r--src/crepe/facade/SDLContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index ca45b79..164d35e 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -229,10 +229,10 @@ void SDLContext::draw_text(const RenderText & data) {
= {tmp_font_texture, [](SDL_Texture * texture) { SDL_DestroyTexture(texture); }};
vec2 size = text.dimensions * cam_aux_data.render_scale * data.transform.scale;
- vec2 screen_pos = (absoluut_pos - cam_aux_data.cam_pos
- + (cam_aux_data.zoomed_viewport) / 2)
- * cam_aux_data.render_scale
- - size / 2 + cam_aux_data.bar_size;
+ vec2 screen_pos
+ = (absoluut_pos - cam_aux_data.cam_pos + (cam_aux_data.zoomed_viewport) / 2)
+ * cam_aux_data.render_scale
+ - size / 2 + cam_aux_data.bar_size;
SDL_FRect dstrect{
.x = screen_pos.x,