From 207ec2997fc84370b0933790c0c5b0e797c84f3f Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 27 May 2020 16:21:35 +0200 Subject: [PATCH] DMA2D: minor fix with double buffering --- src/lv_core/lv_refr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lv_core/lv_refr.c b/src/lv_core/lv_refr.c index 4c6a0ea16..8d986993c 100644 --- a/src/lv_core/lv_refr.c +++ b/src/lv_core/lv_refr.c @@ -229,9 +229,9 @@ void _lv_disp_refr_task(lv_task_t * task) if(disp_refr->inv_area_joined[a] == 0) { uint32_t start_offs = (hres * disp_refr->inv_areas[a].y1 + disp_refr->inv_areas[a].x1) * sizeof(lv_color_t); -#if LV_USE_GPU_STM32_DMA2D - lv_gpu_stm32_dma2d_copy((lv_color_t *)buf_act + start_offs, disp_refr->driver.hor_res, - (lv_color_t *)buf_ina + start_offs, disp_refr->driver.hor_res, +#if LV_USE_GPU_STM32_DMA2D == 0 + lv_gpu_stm32_dma2d_copy((lv_color_t *)(buf_act + start_offs), disp_refr->driver.hor_res, + (lv_color_t *)(buf_ina + start_offs), disp_refr->driver.hor_res, lv_area_get_width(&disp_refr->inv_areas[a]), lv_area_get_height(&disp_refr->inv_areas[a])); #else