Why does touchgfx::Shape flickers when invalidated and has white dots around the border?
I have defined a Screen named GUI which has, images, rectangle and buttons. All are displayed correctly with the exception of touchgfx::Shape which have white dots around the border and flicker when the touchgfx::Shape is invalidated.
I have defined a shape in touchgfx and the code that is autogenerated in my MainViewBase.hpp is:
touchgfx::Container Current_flow;
touchgfx::Shape<3> current_arrow;My intention is to update the color. To achieve this I change the color of the painter associated to the Shape object and invalidate the shape in void MainView::handleTickEvent() from MainView.cpp
current_arrowPainter.setColor(Color::getColorFrom24BitRGB(0xFF, 0, 0));
current_arrow.invalidate();Photo of the white flicker around the arrow:
