aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Sprite.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-29 21:20:48 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-29 21:20:48 +0100
commit7ae597ac9268e031927f94dd89c20ab6c034f5de (patch)
treeee04ad307c70d9007b7e2589c33b4ebcf2fbb287 /src/crepe/api/Sprite.h
parent85aa57e33d493502b05984ce44db6c68f627a6f2 (diff)
working floating point black bars
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r--src/crepe/api/Sprite.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h
index a0e90a0..5a7a1d9 100644
--- a/src/crepe/api/Sprite.h
+++ b/src/crepe/api/Sprite.h
@@ -41,7 +41,7 @@ public:
* \param height the height of the image in game units
*/
Sprite(game_object_id_t id, Texture & image, const Color & color,
- const FlipSettings & flip, int sort_layer, int order_layer, int height);
+ const FlipSettings & flip, int sort_layer, int order_layer, float height);
/**
* \brief Destroys the Sprite instance.
@@ -63,7 +63,7 @@ public:
const int order_in_layer;
//! height in world units
- const int height;
+ const float height;
/**
* \aspect_ratio ratio of the img so that scaling will not become weird