aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-18 13:27:54 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-18 13:27:54 +0100
commitaaca31b3495060b46f178d476636563279fc1c23 (patch)
tree5c1f2d6c97f3df61c1e0166435b1e2fc29d79690
parent3f176dace320b9bb72675cf9b6fd77fe6d35c539 (diff)
implemented wouter feedback
-rw-r--r--src/crepe/facade/SDLContext.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index ed702b0..0d5eb01 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -11,9 +11,7 @@
#include <array>
#include <cmath>
#include <cstddef>
-#include <cstdint>
#include <functional>
-#include <iostream>
#include <memory>
#include <stdexcept>
@@ -149,13 +147,11 @@ SDL_FRect SDLContext::get_dst_rect(const DestinationRectangleData & ctx) const {
size *= cam_aux_data.render_scale * ctx.img_scale * data.scale_offset;
if (ctx.sprite.data.world_space) {
- cout << "world_space" << endl;
vec2 multiplier = cam_aux_data.cam_pos
+ (cam_aux_data.zoomed_viewport / 2) * cam_aux_data.render_scale
- size / 2 + cam_aux_data.bar_size;
screen_pos += multiplier;
} else {
- cout << "camera space" << endl;
vec2 multiplier = (cam_aux_data.zoomed_viewport / 2) * cam_aux_data.render_scale
- size / 2 + cam_aux_data.bar_size;
screen_pos += multiplier;