[Horus] Model selection screen refactoring

This commit is contained in:
Bertrand Songis
2016-03-09 07:06:51 +01:00
parent 797b4d9f1e
commit f75fedcb0d
23 changed files with 375 additions and 375 deletions
+7 -2
View File
@@ -110,9 +110,9 @@ class BitmapBuffer: public BitmapBufferBase<uint16_t>
this->format = format;
}
inline void clear()
inline void clear(LcdFlags flags=0)
{
drawSolidFilledRect(0, 0, width, height, 0);
drawSolidFilledRect(0, 0, width, height, flags);
}
inline void drawPixel(display_t * p, display_t value)
@@ -178,6 +178,11 @@ class BitmapBuffer: public BitmapBufferBase<uint16_t>
void drawFontPattern(coord_t x, coord_t y, const uint8_t * font, const uint16_t * spec, int index, LcdFlags flags);
void drawText(coord_t x, coord_t y, const char * s, LcdFlags flags)
{
drawSizedText(x, y, s, 255, flags);
}
void drawSizedText(coord_t x, coord_t y, const char * s, uint8_t len, LcdFlags flags);
template<class T>