ESP32_TFT_library icon indicating copy to clipboard operation
ESP32_TFT_library copied to clipboard

CENTER and RIGHT in clipwin

Open m-byte opened this issue 7 years ago • 2 comments

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.

m-byte avatar Jul 06 '18 14:07 m-byte

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 ;

tsqdhh avatar Jul 27 '18 01:07 tsqdhh

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

MarkJeronimus avatar Jun 25 '21 14:06 MarkJeronimus