Skip to content

Commit 242584a

Browse files
NyankoTearfincs
authored andcommitted
Fix sprite scale
1 parent 802852c commit 242584a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/c2d/sprite.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static inline void C2D_SpriteScale(C2D_Sprite* sprite, float x, float y)
5252
sprite->params.pos.w *= x;
5353
sprite->params.pos.h *= y;
5454
sprite->params.center.x *= x;
55-
sprite->params.center.y *= x;
55+
sprite->params.center.y *= y;
5656
}
5757

5858
/** @brief Rotate sprite (relative)

0 commit comments

Comments
 (0)