BitmapBuffer: fixed RIGHT align
This commit is contained in:
committed by
Raphael Coeffic
parent
ad658a92a4
commit
fb059887e7
@@ -1112,6 +1112,8 @@ coord_t BitmapBuffer::drawSizedText(coord_t x, coord_t y, const char *s,
|
|||||||
|
|
||||||
if (flags & RIGHT) {
|
if (flags & RIGHT) {
|
||||||
label_draw_dsc.align = LV_TEXT_ALIGN_RIGHT;
|
label_draw_dsc.align = LV_TEXT_ALIGN_RIGHT;
|
||||||
|
coords.x1 -= p.x;
|
||||||
|
coords.x2 -= p.x;
|
||||||
} else if (flags & CENTERED) {
|
} else if (flags & CENTERED) {
|
||||||
label_draw_dsc.align = LV_TEXT_ALIGN_CENTER;
|
label_draw_dsc.align = LV_TEXT_ALIGN_CENTER;
|
||||||
coords.x1 -= p.x / 2;
|
coords.x1 -= p.x / 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user