mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(refr): eliminate side effect in assert (#6499)
This commit is contained in:
parent
7e315a1a53
commit
3ac0a96cca
@ -584,13 +584,14 @@ static void refr_invalid_areas(void)
|
|||||||
*/
|
*/
|
||||||
static void layer_reshape_draw_buf(lv_layer_t * layer)
|
static void layer_reshape_draw_buf(lv_layer_t * layer)
|
||||||
{
|
{
|
||||||
LV_ASSERT(lv_draw_buf_reshape(
|
lv_draw_buf_t * ret = lv_draw_buf_reshape(
|
||||||
layer->draw_buf,
|
layer->draw_buf,
|
||||||
layer->color_format,
|
layer->color_format,
|
||||||
lv_area_get_width(&layer->buf_area),
|
lv_area_get_width(&layer->buf_area),
|
||||||
lv_area_get_height(&layer->buf_area),
|
lv_area_get_height(&layer->buf_area),
|
||||||
0)
|
0);
|
||||||
!= NULL);
|
LV_UNUSED(ret);
|
||||||
|
LV_ASSERT_NULL(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user