diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-06 15:42:25 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-06 15:42:25 +0100 |
commit | 7ec1fcfcff0c01d204ccbf1bac9919ba610b8606 (patch) | |
tree | cd48865b6af69a0d71a70a720b843b4b681f53bb /src/crepe/facade/SDLContext.cpp | |
parent | 3fbe1a5c72e7512a330111665482a5babf21cc15 (diff) |
implemented final max feedback
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r-- | src/crepe/facade/SDLContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp index 0097070..9533b8a 100644 --- a/src/crepe/facade/SDLContext.cpp +++ b/src/crepe/facade/SDLContext.cpp @@ -243,7 +243,7 @@ SDL_FRect SDLContext::get_dst_rect(const DstRect & ctx) const { size *= cam.render_scale * ctx.img_scale * data.scale_offset; - vec2 screen_pos = (ctx.pos - cam.cam_pos + (cam.zoomed_viewport) / 2) * cam.render_scale + vec2 screen_pos = (ctx.pos + data.position_offset - cam.cam_pos + (cam.zoomed_viewport) / 2) * cam.render_scale - size / 2 + cam.bar_size; return SDL_FRect{ |