Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprite alignment incorrect when scaling a non-maximal sprite #52

Closed
JujuAdams opened this issue Apr 16, 2020 · 1 comment
Closed

Sprite alignment incorrect when scaling a non-maximal sprite #52

JujuAdams opened this issue Apr 16, 2020 · 1 comment
Labels
bug 😅 Juju did a bad thing

Comments

@JujuAdams
Copy link
Owner

When drawing a scaled image of a sprite, and that image does not fill the sprite canvas, the image is drawn offset from the centre of the line of text.

unknown3

@JujuAdams JujuAdams added the bug 😅 Juju did a bad thing label Apr 16, 2020
@JujuAdams
Copy link
Owner Author

The sprite offset that was collected from sprite_get_uvs(), specifically elements 4 + 5, weren't being scaled with _text_scale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 😅 Juju did a bad thing
Projects
None yet
Development

No branches or pull requests

1 participant