subpx: read fro mteh font if subpx is supported

This commit is contained in:
Gabor Kiss-Vamosi
2019-10-18 14:57:27 +02:00
parent 87d191e737
commit f282c3bd08
2 changed files with 3078 additions and 1485 deletions
+1 -1
View File
@@ -301,7 +301,7 @@ void lv_draw_letter(const lv_point_t * pos_p, const lv_area_t * mask_p, const lv
if(g.box_w & 0x7) width_byte_scr++;
uint16_t width_bit = g.box_w * g.bpp; /*Letter width in bits*/
bool subpx = true;
bool subpx = font_p->subpx == LV_FONT_SUBPX_NONE ? false : true;
/* Calculate the col/row start/end on the map*/
lv_coord_t col_start;
File diff suppressed because it is too large Load Diff