loboris / ESP32_TFT_library

Full featured TFT library for ESP32 with demo application
564 stars 219 forks source link

CENTER and RIGHT in clipwin #43

Open m-byte opened 6 years ago

m-byte commented 6 years ago

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 commented 6 years ago

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 commented 3 years ago

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