aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-06 11:13:01 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-06 11:13:01 +0100
commit0c1cd46d22d9006ab46442c92bc7bd8858079ea8 (patch)
tree5e83fde792aade105080238cf4b2bdd1730aa750 /src/crepe/facade/SDLContext.cpp
parentd5f63024ebed7df2fff8e016bd1c7c26f8fdfa27 (diff)
merged master
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r--src/crepe/facade/SDLContext.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index 72b4e42..0097070 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -11,7 +11,6 @@
#include <cstddef>
#include <cstdint>
#include <functional>
-#include <iostream>
#include <memory>
#include <stdexcept>
@@ -19,7 +18,6 @@
#include "../api/Config.h"
#include "../api/Sprite.h"
#include "../api/Texture.h"
-#include "../manager/EventManager.h"
#include "../util/Log.h"
#include "SDLContext.h"
@@ -273,7 +271,7 @@ void SDLContext::draw(const RenderContext & ctx) {
double angle = ctx.angle + data.angle_offset;
- this->set_color_texture(ctx.sprite.sprite_image, ctx.sprite.color);
+ this->set_color_texture(ctx.sprite.texture, ctx.sprite.data.color);
SDL_RenderCopyExF(this->game_renderer.get(), ctx.sprite.texture.texture.get(), &srcrect,
&dstrect, angle, NULL, render_flip);
}