Problem with text wildcard
Hello!
I have textArea with wildcard, which is updated by Slider moving
void OPTIONS_SCREENView::R_Slider_MOVED(int value)
{
RGB_LED_Sample_box.setColor(touchgfx::Color::getColorFrom24BitRGB(R_Slider.getValue(), G_Slider.getValue(), B_Slider.getValue()));
RGB_LED_Sample_box.invalidate();
Unicode::snprintf(R_Value_textBuffer, 20, "%d", value);
R_Value_text.setWildcard(R_Value_textBuffer);
R_Value_text.resizeToCurrentText();
R_Value_text.invalidate();
}When I set values from 0 to 255, everything is fine. When reduce from 255 to 0 - problem: if the number is less than 100, then a 3 digit incorrect number, 1 and 2 - correct two-digit number, if less than 10 during the 2nd and 3rd digits of the wrong number, the first correct one digit number.
values in variable "value" - are always correct.
For example:
255->255
101->101
89->891
78->781
11->111
9->911
What's wrong?
