mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/lvgl*: adapt ltdc periph disp_dev interface
This commit is contained in:
parent
1152a47817
commit
757894e395
@ -76,8 +76,10 @@ static void _disp_map(lv_disp_drv_t *drv, const lv_area_t *area, lv_color_t *col
|
||||
return;
|
||||
}
|
||||
|
||||
disp_dev_map(_screen_dev->display, area->x1, area->x2, area->y1, area->y2,
|
||||
(const uint16_t *)color_p);
|
||||
const disp_dev_area_t disp_area = {
|
||||
area->x1, area->x2, area->y1, area->y2
|
||||
};
|
||||
disp_dev_map(_screen_dev->display, &disp_area, (const uint16_t *)color_p);
|
||||
|
||||
LOG_DEBUG("[lvgl] flush display\n");
|
||||
|
||||
|
@ -60,8 +60,10 @@ static void _disp_map(lv_disp_drv_t *drv, const lv_area_t *area, lv_color_t *col
|
||||
return;
|
||||
}
|
||||
|
||||
disp_dev_map(_screen_dev->display, area->x1, area->x2, area->y1, area->y2,
|
||||
(const uint16_t *)color_p);
|
||||
const disp_dev_area_t disp_area = {
|
||||
area->x1, area->x2, area->y1, area->y2
|
||||
};
|
||||
disp_dev_map(_screen_dev->display, &disp_area, (const uint16_t *)color_p);
|
||||
|
||||
LOG_DEBUG("[lvgl] flush display\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user