Latest libopenui updates

This commit is contained in:
Bertrand Songis
2019-10-11 19:44:06 +02:00
parent cd702443c7
commit ce3d612faf
5 changed files with 35 additions and 18 deletions
+4 -4
View File
@@ -363,15 +363,15 @@ class BitmapBuffer: public BitmapBufferBase<uint16_t>
coord_t drawSizedText(coord_t x, coord_t y, const char * s, uint8_t len, LcdFlags flags=0);
void drawText(coord_t x, coord_t y, const char * s, LcdFlags flags = 0)
coord_t drawText(coord_t x, coord_t y, const char * s, LcdFlags flags = 0)
{
drawSizedText(x, y, s, 255, flags);
return drawSizedText(x, y, s, 255, flags);
}
void drawTextAtIndex(coord_t x, coord_t y, const char * s, uint8_t idx, LcdFlags flags = 0)
coord_t drawTextAtIndex(coord_t x, coord_t y, const char * s, uint8_t idx, LcdFlags flags = 0)
{
char length = *s++;
drawSizedText(x, y, s+length*idx, length, flags);
return drawSizedText(x, y, s+length*idx, length, flags);
}
void drawNumber(coord_t x, coord_t y, int32_t val, LcdFlags flags = 0, uint8_t len = 0, const char * prefix = nullptr, const char * suffix = nullptr);