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

fix overlays being cut off from the top #2522

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

ssievert42
Copy link
Contributor

Previously, overlays were always positioned at y=0 and the y pos was cut off from the top part of the buffer.

That behaviour was introduced by: fdbf0bf
Since that commit, the coordinates of a GfxDrawImageLayer were changed to be the position in pixels, multiplied by 256.
The overlay y position now has to be multiplied by 256 as well, before assigning it to the y start coordinate of a GfxDrawImageLayer.

Closes #2520 (See that issue for screenshots and some more info.)

overlays were always positioned at y=0 and the y pos was cut off from the top part of the buffer

this was an issue since: fdbf0bf (Graphics.drawImages layer x/y can now be non-integer (smoother movement on scaled/rotated images), 2024-05-22)
@gfwilliams
Copy link
Member

Thanks for tracking this down - that's great!

@gfwilliams gfwilliams merged commit 3fcb465 into espruino:master Jun 24, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

overlays are cut off from the top instead of landing at desired y position
2 participants