mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-02 01:18:04 +08:00
fix(nuttx): fix build warning using nuttx (#6379)
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
@@ -83,9 +83,11 @@ void lv_draw_sw_blend(lv_draw_unit_t * draw_unit, const lv_draw_sw_blend_dsc_t *
|
||||
}
|
||||
|
||||
switch(layer->color_format) {
|
||||
#if LV_DRAW_SW_SUPPORT_RGB565
|
||||
case LV_COLOR_FORMAT_RGB565:
|
||||
lv_draw_sw_blend_color_to_rgb565(&fill_dsc);
|
||||
break;
|
||||
#endif
|
||||
#if LV_DRAW_SW_SUPPORT_ARGB8888
|
||||
case LV_COLOR_FORMAT_ARGB8888:
|
||||
lv_draw_sw_blend_color_to_argb8888(&fill_dsc);
|
||||
|
||||
@@ -160,6 +160,13 @@ void lv_draw_sw_transform(lv_draw_unit_t * draw_unit, const lv_area_t * dest_are
|
||||
int32_t xs_ups = 0, ys_ups = 0, ys_ups_start = 0, ys_step_256_original = 0;
|
||||
int32_t xs_step_256 = 0, ys_step_256 = 0;
|
||||
|
||||
/*When some of the color formats are disabled, these variables could be unused, avoid warning here*/
|
||||
LV_UNUSED(aa);
|
||||
LV_UNUSED(xs_ups);
|
||||
LV_UNUSED(ys_ups);
|
||||
LV_UNUSED(xs_step_256);
|
||||
LV_UNUSED(ys_step_256);
|
||||
|
||||
/*If scaled only make some simplification to avoid rounding errors.
|
||||
*For example if there is a 100x100 image zoomed to 300%
|
||||
*The destination area in X will be x1=0; x2=299
|
||||
|
||||
Reference in New Issue
Block a user