draw label: remove 8bpp optimization becasue it's not that effective

This commit is contained in:
Gabor Kiss-Vamosi
2020-03-23 17:13:46 +01:00
parent f9edf0b341
commit 523c9793cb

View File

@@ -523,19 +523,6 @@ static void draw_letter_normal(lv_coord_t pos_x, lv_coord_t pos_y, lv_font_glyph
for(row = row_start ; row < row_end; row++) {
int32_t mask_p_start = mask_p;
if(bpp == 8) {
if(opa == LV_OPA_COVER) {
lv_memcpy(&mask_buf[mask_p], map_p, col_end - col_start + 1);
mask_p += col_end - col_start + 1;
map_p += box_w + 1;
} else {
for(col = col_start; col < col_end; col++) {
mask_buf[mask_p] = bpp_opa_table_p[*map_p];
mask_p++;
map_p++;
}
}
} else {
bitmask = bitmask_init >> col_bit;
for(col = col_start; col < col_end; col++) {
/*Load the pixel's opacity into the mask*/
@@ -561,7 +548,7 @@ static void draw_letter_normal(lv_coord_t pos_x, lv_coord_t pos_y, lv_font_glyph
/*Next mask byte*/
mask_p++;
}
}
/*Apply masks if any*/
if(other_mask_cnt) {