Widgets don't draw correctly #11
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, currentDisplay->start() is called before currentDisplay->initScreen();.
e953ec9216/src/screenmanager.h (L31-L35)
On the other hand, some widgets create a white border when start() is called.
e953ec9216/src/widgets/progressbar.cpp (L15-L19)
currentDisplay->initScreen() just fills the whole Screen with TFT_BLACK.
This means, things like white borders will be overdrawn with TFT_BLACK.
A valid fix would be to call currentDisplay->initScreen() before currentDisplay->start()
Widget::start should only be called from Display::initScreen
Oh okay, but still, currentDisplay->initScreen() only fills the screen black.
Also, the start functions of the widgets get called in the Displays start function. This would mean that refactoring would be needed to move the widget.start() functions to initScreen