1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(refr): eliminate side effect in assert (#6499)

This commit is contained in:
Matthew Kendall 2024-07-10 23:23:11 -07:00 committed by GitHub
parent 7e315a1a53
commit 3ac0a96cca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -584,13 +584,14 @@ static void refr_invalid_areas(void)
*/
static void layer_reshape_draw_buf(lv_layer_t * layer)
{
LV_ASSERT(lv_draw_buf_reshape(
layer->draw_buf,
layer->color_format,
lv_area_get_width(&layer->buf_area),
lv_area_get_height(&layer->buf_area),
0)
!= NULL);
lv_draw_buf_t * ret = lv_draw_buf_reshape(
layer->draw_buf,
layer->color_format,
lv_area_get_width(&layer->buf_area),
lv_area_get_height(&layer->buf_area),
0);
LV_UNUSED(ret);
LV_ASSERT_NULL(ret);
}
/**