Report Bugs Here

Moderator: Mmiscool

User avatar
By tcpipchip
#56369 Solved tft.bar problem

I rebuild the TFT_OBJECT routine, level variable to int now! no float more!

uint8_t value;

and routine
case BAR:
ax = (obj->width - (obj->label.length() * obj->textsize * FontSizeX)) >> 1; // divided by 2
ay = (obj->height - obj->textsize * FontSizeY) >> 1;
r = (float)obj->value/100.0 * (obj->width -2);


no more reset
Last edited by tcpipchip on Tue Oct 11, 2016 10:07 am, edited 1 time in total.
User avatar
By Mmiscool
#56397 Any chance you can zip up the files that changed so i can merge in to the main branch.