mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-01 16:58:33 +08:00
fix: var redeclaration (#8109)
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
#include "../../display/lv_display_private.h"
|
#include "../../display/lv_display_private.h"
|
||||||
#include "../../stdlib/lv_string.h"
|
#include "../../stdlib/lv_string.h"
|
||||||
#include "../../core/lv_global.h"
|
#include "../../core/lv_global.h"
|
||||||
|
#include "../../misc/lv_area_private.h"
|
||||||
|
|
||||||
#if LV_USE_VECTOR_GRAPHIC && LV_USE_THORVG
|
#if LV_USE_VECTOR_GRAPHIC && LV_USE_THORVG
|
||||||
#if LV_USE_THORVG_EXTERNAL
|
#if LV_USE_THORVG_EXTERNAL
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ void lv_draw_sw_layer(lv_draw_task_t * t, const lv_draw_image_dsc_t * draw_dsc,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LV_USE_LAYER_DEBUG
|
#if LV_USE_LAYER_DEBUG
|
||||||
|
{
|
||||||
lv_draw_fill_dsc_t fill_dsc;
|
lv_draw_fill_dsc_t fill_dsc;
|
||||||
lv_draw_fill_dsc_init(&fill_dsc);
|
lv_draw_fill_dsc_init(&fill_dsc);
|
||||||
fill_dsc.color = lv_color_hex(layer_to_draw->color_format == LV_COLOR_FORMAT_ARGB8888 ? 0xff0000 : 0x00ff00);
|
fill_dsc.color = lv_color_hex(layer_to_draw->color_format == LV_COLOR_FORMAT_ARGB8888 ? 0xff0000 : 0x00ff00);
|
||||||
@@ -146,10 +147,12 @@ void lv_draw_sw_layer(lv_draw_task_t * t, const lv_draw_image_dsc_t * draw_dsc,
|
|||||||
border_dsc.opa = LV_OPA_60;
|
border_dsc.opa = LV_OPA_60;
|
||||||
border_dsc.width = 2;
|
border_dsc.width = 2;
|
||||||
lv_draw_sw_border(t, &border_dsc, &area_rot);
|
lv_draw_sw_border(t, &border_dsc, &area_rot);
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LV_USE_PARALLEL_DRAW_DEBUG
|
#if LV_USE_PARALLEL_DRAW_DEBUG
|
||||||
|
{
|
||||||
int32_t idx = t->draw_unit->idx;
|
int32_t idx = t->draw_unit->idx;
|
||||||
|
|
||||||
lv_draw_fill_dsc_t fill_dsc;
|
lv_draw_fill_dsc_t fill_dsc;
|
||||||
@@ -185,6 +188,7 @@ void lv_draw_sw_layer(lv_draw_task_t * t, const lv_draw_image_dsc_t * draw_dsc,
|
|||||||
label_dsc.color = lv_color_white();
|
label_dsc.color = lv_color_white();
|
||||||
label_dsc.text = buf;
|
label_dsc.text = buf;
|
||||||
lv_draw_sw_label(t, &label_dsc, &txt_area);
|
lv_draw_sw_label(t, &label_dsc, &txt_area);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user