mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-21 23:08:49 -05:00
Fix sprite scaling
This commit is contained in:
parent
5a071cef14
commit
e16b50f2e6
5
game.h
5
game.h
@ -1099,9 +1099,12 @@ void SFG_drawScaledSprite(
|
||||
uint8_t minusValue,
|
||||
RCL_Unit distance)
|
||||
{
|
||||
if ((size > SFG_MAX_SPRITE_SIZE) || (size == 0))
|
||||
if (size == 0)
|
||||
return;
|
||||
|
||||
if (size > SFG_MAX_SPRITE_SIZE)
|
||||
size = SFG_MAX_SPRITE_SIZE;
|
||||
|
||||
uint16_t halfSize = size / 2;
|
||||
|
||||
int16_t topLeftX = centerX - halfSize;
|
||||
|
Loading…
Reference in New Issue
Block a user