Skip to content

gfx_RotateScaleSprite breaks when scale >= 128 #612

Open
@ZERICO2005

Description

@ZERICO2005

both gfx_RotateScaleSprite and gfx_RotatedScaledSprite_NoClip break when scale is >= 128 (>= 200%). The documentation says that range is about 1% to 400% scale or 1 to 255.

When the scale is >= 128, the sprite is rotated in the opposite direction + 180 degrees, and will start decreasing in size.

Shown below is the scale sweeping from 4 to 255:
Image

I've been able to fix the rotation when scale is >= 128. But fixing the scaling for a scale of [129, 255] is more complicated as it is probably an 8bit/16bit overflow/underflow.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions