Text rendered by screensaver has Y-offset after tcmenu was active #498
Closed
jeroen94704
started this conversation in
General
Replies: 1 comment
-
Found the fix. In the overload of CustomDrawing::started I had to call "gfx.setFontPosBaseline();" which resets the vertical offset based on the current font. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a "screensaver" that takes over the display to render text when the menu is not active. When I take over the display immediately after power-up (from inside the setup() function) it works fine, but after tcmenu has been active once the text is offset in the Y-direction. The display has a resolution of 256x64, and I set the position of the text using setCursor(x,64), which seems to make sense. After tcmenu has been active the text shifts up by ~15 pixels (hard to say exactly how much).
See here for a demo of the effect: https://imgur.com/a/c72qO7l
What could be causing this?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions