mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
img drawing: fix ARGB recoloring
This commit is contained in:
parent
ef7a8f3543
commit
8f81a04ffb
@ -399,7 +399,7 @@ static void lv_draw_map(const lv_area_t * map_area, const lv_area_t * clip_area,
|
|||||||
bool transform = draw_dsc->angle != 0 || draw_dsc->zoom != LV_IMG_ZOOM_NONE ? true : false;
|
bool transform = draw_dsc->angle != 0 || draw_dsc->zoom != LV_IMG_ZOOM_NONE ? true : false;
|
||||||
|
|
||||||
/*Simple ARGB image. Handle it as special case because it's very common*/
|
/*Simple ARGB image. Handle it as special case because it's very common*/
|
||||||
if(other_mask_cnt == 0 && !transform && !chroma_key && alpha_byte) {
|
if(other_mask_cnt == 0 && !transform && !chroma_key && draw_dsc->recolor_opa == LV_OPA_TRANSP && alpha_byte) {
|
||||||
int32_t x;
|
int32_t x;
|
||||||
int32_t y;
|
int32_t y;
|
||||||
for(y = 0; y < draw_area_h; y++) {
|
for(y = 0; y < draw_area_h; y++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user