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

Screen boundaries are off with box command #44

Open
randy-earthlcd opened this issue Sep 14, 2022 · 0 comments
Open

Screen boundaries are off with box command #44

randy-earthlcd opened this issue Sep 14, 2022 · 0 comments
Assignees
Labels
bug Something isn't working Lua

Comments

@randy-earthlcd
Copy link
Member

Describe the bug
The screen start and end coordinates are off in the box command. Possibly LCD timing is wrong.

To Reproduce

  1. Run this command:
    ez.Cls(0)
    -- These are outer pixels of the screen, [0,319] and [0,239] but shows a red line on top only
    ez.Box (0,0,319,239,0xff0000) -- draw a red box

By trial and error this draws a red box filling the outer displayable pixels from 1,0 to 318, 238

ez.Cls(0xFFFFFF)
ez.Box (1,0,318,238,0xff0000) --These are outer pixels of the screen, shouldn't they be [0,319] and [0,239]?

Expected behavior
Randall the intern tried to draw a box the size of the screen and it was off center so by trial and error he found what he had to do to draw a one pixel thick box on the perimeter of the screen.

@randy-earthlcd randy-earthlcd added bug Something isn't working Lua labels Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Lua
Projects
None yet
Development

No branches or pull requests

2 participants