espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.73k stars 741 forks source link

fix overlays being cut off from the top #2521

Closed ssievert42 closed 1 week ago

ssievert42 commented 1 week ago

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: fdbf0bfd2 Since that commit, the coordinates of a GfxDrawImageLayer were changed to be the position in pixels, shifted to the left by 8 bits. The overlay y position now has to be shifted to the left by 8 bits as well, before assigning it to the y start coordinate of a GfxDrawImageLayer.

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

ssievert42 commented 1 week ago

Superseded by #2522