diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-04 10:56:53 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-04 10:56:53 +0100 |
commit | a11824956b478e356fa684c9d88b980aa22cb19a (patch) | |
tree | d743b0415040d68db4f5cf35b2fc58bab41f0e46 /src/crepe/api/Sprite.cpp | |
parent | 683ae28b81a66f18bbadbe7ae70eb8ddd952c293 (diff) |
implemented feedback, cameraValues need better name?
Diffstat (limited to 'src/crepe/api/Sprite.cpp')
-rw-r--r-- | src/crepe/api/Sprite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/Sprite.cpp b/src/crepe/api/Sprite.cpp index fe495a1..3a1acac 100644 --- a/src/crepe/api/Sprite.cpp +++ b/src/crepe/api/Sprite.cpp @@ -20,7 +20,7 @@ Sprite::Sprite(game_object_id_t id, Texture & texture, const Sprite::Data & ctx) this->mask.w = this->texture.get_width(); this->mask.h = this->texture.get_height(); - this->data.aspect_ratio = static_cast<double>(this->mask.w) / this->mask.h; + this->aspect_ratio = static_cast<double>(this->mask.w) / this->mask.h; } Sprite::~Sprite() { dbg_trace(); } |