fix offset applied twice in drawFilledRect()

note: it seems there is no 'x' clipping in drawHorizontalLine(). This should probably be checked.
This commit is contained in:
Raphael Coeffic
2021-04-05 14:58:30 +02:00
parent a8c61f740e
commit 791eec0235
2 changed files with 19 additions and 3 deletions
+1
View File
@@ -516,6 +516,7 @@ class BitmapBuffer: public BitmapBufferBase<pixel_t>
static BitmapBuffer * load_bmp(const char * filename);
static BitmapBuffer * load_stb(const char * filename);
uint8_t drawChar(coord_t x, coord_t y, const uint8_t * font, const uint16_t * spec, unsigned int index, LcdFlags flags);
void drawHorizontalLineAbs(coord_t x, coord_t y, coord_t w, uint8_t pat, LcdFlags flags);
};
extern BitmapBuffer * lcd;