diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-04 10:27:42 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-04 10:27:42 +0100 |
commit | 7d1f3b90a5d640e4ae23d6ff8f0bf1bf35b6e4cb (patch) | |
tree | 0697c269ce96e55c7841344ec426e0e3daa2c864 /src/crepe/api/Sprite.cpp | |
parent | 5981ab2262a98b80a1339f86a6b71093576a9b35 (diff) | |
parent | c7c4cc0e3b1a3152256bc8ebf6494c19519538db (diff) |
merge 2 gameloop branches
Diffstat (limited to 'src/crepe/api/Sprite.cpp')
-rw-r--r-- | src/crepe/api/Sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/Sprite.cpp b/src/crepe/api/Sprite.cpp index 8647794..0a2ad4c 100644 --- a/src/crepe/api/Sprite.cpp +++ b/src/crepe/api/Sprite.cpp @@ -22,8 +22,8 @@ Sprite::Sprite(game_object_id_t id, Texture & image, const Color & color, dbg_trace(); - this->mask.w = sprite_image.get_width(); - this->mask.h = sprite_image.get_height(); + this->mask.w = sprite_image.get_size().x; + this->mask.h = sprite_image.get_size().y; this->aspect_ratio = static_cast<double>(this->mask.w) / this->mask.h; } |