[Horus] Model selection screen refactoring
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user