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

Bug: TFT_clearStringRect not working correctly #41

Open
sukeshak opened this issue May 31, 2018 · 1 comment
Open

Bug: TFT_clearStringRect not working correctly #41

sukeshak opened this issue May 31, 2018 · 1 comment

Comments

@sukeshak
Copy link

I tried using TFT_clearStringRect but found a bug.
I changed the last parameter in the implementation to TFT_BLUE to troubleshoot.

Not sure why but here is how its working now
Before
TFT_fillRect(x+dispWin.x1, y+dispWin.y1, w, h, _bg);
After
TFT_fillRect(x+dispWin.x1, y+dispWin.y1-(h*2), w, h+1, _bg);

I haven't gone through the entire code, so not sure why your line does not work.

Suggestion:
Can we change the 3rd parameter to number of characters so that its easy to specify how far the line needs to be cleared?

The buffer idea works only if you have same length string being printed. Otherwise if the previous string was longer, there will be left overs.

@da-vics
Copy link

da-vics commented Jul 17, 2020

@sukeshak were you able to solve this?

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

No branches or pull requests

2 participants