mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
draw_blend: fix disp declaration for LV_COLOR_SCREEN_TRANSP (#1359)
This commit is contained in:
parent
87d5c4d135
commit
c8027aa70f
@ -518,6 +518,9 @@ static void map_normal(const lv_area_t * disp_area, lv_color_t * disp_buf, cons
|
|||||||
#if LV_COLOR_SCREEN_TRANSP
|
#if LV_COLOR_SCREEN_TRANSP
|
||||||
lv_opa_t opa_composed;
|
lv_opa_t opa_composed;
|
||||||
#endif
|
#endif
|
||||||
|
#if LV_COLOR_SCREEN_TRANSP || LV_USE_GPU
|
||||||
|
lv_disp_t * disp = lv_refr_get_disp_refreshing();
|
||||||
|
#endif
|
||||||
|
|
||||||
lv_coord_t x;
|
lv_coord_t x;
|
||||||
lv_coord_t y;
|
lv_coord_t y;
|
||||||
@ -527,7 +530,6 @@ static void map_normal(const lv_area_t * disp_area, lv_color_t * disp_buf, cons
|
|||||||
/*Go to the first px of the row*/
|
/*Go to the first px of the row*/
|
||||||
map_buf_tmp += (draw_area->x1 - (map_area->x1 - disp_area->x1));
|
map_buf_tmp += (draw_area->x1 - (map_area->x1 - disp_area->x1));
|
||||||
#if LV_USE_GPU
|
#if LV_USE_GPU
|
||||||
lv_disp_t * disp = lv_refr_get_disp_refreshing();
|
|
||||||
if(disp->driver.gpu_blend_cb &&
|
if(disp->driver.gpu_blend_cb &&
|
||||||
((draw_area_w > GPU_WIDTH_LIMIT * 4 && opa == LV_OPA_COVER) ||
|
((draw_area_w > GPU_WIDTH_LIMIT * 4 && opa == LV_OPA_COVER) ||
|
||||||
(draw_area_w > GPU_WIDTH_LIMIT && opa != LV_OPA_COVER))) {
|
(draw_area_w > GPU_WIDTH_LIMIT && opa != LV_OPA_COVER))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user