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:
Liam Howatt
2026-02-07 02:31:13 -05:00
committed by GitHub
parent a3f8487127
commit 56e4249fa0
+5
View File
@@ -211,10 +211,15 @@ static void flush_cb(lv_display_t * disp, const lv_area_t * area, uint8_t * px_m
#endif
}
else {
#if LV_USE_DRAW_SW
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);
clean_dcache();
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
}
}
}