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

CENTER and RIGHT in clipwin #43

Open
m-byte opened this issue Jul 6, 2018 · 2 comments
Open

CENTER and RIGHT in clipwin #43

m-byte opened this issue Jul 6, 2018 · 2 comments

Comments

@m-byte
Copy link

m-byte commented Jul 6, 2018

When I try to use RIGHT inside a clipwin, right align is still done on the full screen, but any character outside the clipwin is not displayed. CENTER also uses the full screen as reference.
Expected behavior would be, that these functions are used relative to the current clipwin.

@tsqdhh
Copy link

tsqdhh commented Jul 27, 2018

The bug is in line 1957 in tft.c.

if (x == RIGHT) x = dispWin.x2 - tmpw + dispWin.x1;
change:
if (x == RIGHT) x = dispWin.x2 - tmpw ;

@MarkJeronimus
Copy link

I concluded the same bugged line of code. Apart from disappearing characters, they also don't align correctly to the right of the dispWin.

recorded

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

3 participants