mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-02 17:47:28 +08:00
fix(LTDC): warn when rotating and DRAW_SW is disabled (#9670)
Co-authored-by: André Costa <andre_miguel_costa@hotmail.com> Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -211,10 +211,15 @@ static void flush_cb(lv_display_t * disp, const lv_area_t * area, uint8_t * px_m
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
#if LV_USE_DRAW_SW
|
||||||
uint32_t area_stride = px_size * area_width;
|
uint32_t area_stride = px_size * area_width;
|
||||||
lv_draw_sw_rotate(px_map, first_pixel, area_width, area_height, area_stride, fb_stride, rotation, cf);
|
lv_draw_sw_rotate(px_map, first_pixel, area_width, area_height, area_stride, fb_stride, rotation, cf);
|
||||||
clean_dcache();
|
clean_dcache();
|
||||||
g_data.disp_flushed_in_flush_cb[layer_idx] = true;
|
g_data.disp_flushed_in_flush_cb[layer_idx] = true;
|
||||||
|
#else
|
||||||
|
LV_LOG_WARN("LV_USE_DRAW_SW needs to be enabled to rotate the display's content");
|
||||||
|
g_data.disp_flushed_in_flush_cb[layer_idx] = true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user