Text area sometimes contains question marks
I've created a wildcard in Designer using https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/texts-and-fonts/ and updating it in handleTickEvent() as per https://support.touchgfx.com/docs/tutorials/tutorial-03/.
Occasionally it's displayed with garbage e.g. 42?5?352. It's fine in the buffer. TEXTAREA1_SIZE is 10.
void Screen1View::updateTxt(int value)
{
Unicode::snprintf(textArea1Buffer, TEXTAREA1_SIZE, "%d", value);
textArea1.resizeToCurrentTextWithAlignment();
textArea1.invalidate();
}
The help says "Remember to call myTextArea.invalidate() before resizing myTextArea if you are decreasing the text area size. If not, you will still see part of the old text area, since it is not covered by the new smaller text area.", but the code sample is the other way round. Either way it still displays garbage.
