fixed lcdRectDraw()
This commit is contained in:
parent
428827bab9
commit
fe61558e88
1 changed files with 3 additions and 3 deletions
|
@ -462,12 +462,12 @@ void lcdDrawRect(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t fil
|
|||
y0 = TempY;
|
||||
}
|
||||
if(filled) {
|
||||
lcdFillArea(x0, y0, x1, y1, color);
|
||||
lcdFillArea(x0, y0, x1+1, y1+1, color);
|
||||
} else {
|
||||
lcdDrawLine(x0, y0, x1, y0, color);
|
||||
lcdDrawLine(x0, y1, x1, y1, color);
|
||||
lcdDrawLine(x0, y0, x0, y1, color);
|
||||
lcdDrawLine(x1, y0, x1, y1, color);
|
||||
lcdDrawLine(x1, y0, x1, y1+1, color);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -477,7 +477,7 @@ void lcdDrawRectString(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, const
|
|||
off_left = ((x1-x0)-lcdMeasureString(str, font))/2;
|
||||
off_up = ((y1-y0) - lcdGetFontHeight(font)) / 2;
|
||||
|
||||
lcdDrawRect(x0, y0, x1, y1, 1, bkColor);
|
||||
lcdDrawRect(x0, y0, x1, y1, filled, bkColor);
|
||||
/* Abhishek: default to solid text for this? */
|
||||
lcdDrawString(x0+off_left, y0+off_up, str, font, fontColor, bkColor, solid);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue