SDL3 Form SIM_Display
This commit is contained in:
@@ -44,7 +44,7 @@ static void disp_flush(lv_disp_drv_t* disp_drv, const lv_area_t* area, lv_color_
|
||||
/**********************
|
||||
* STATIC VARIABLES
|
||||
**********************/
|
||||
|
||||
static SIM_Display_t lvgl_display;
|
||||
/**********************
|
||||
* MACROS
|
||||
**********************/
|
||||
@@ -142,8 +142,7 @@ void lv_port_disp_init(void)
|
||||
static void disp_init(void)
|
||||
{
|
||||
/*You code here*/
|
||||
SIM_Display_INIT(MY_DISP_HOR_RES,MY_DISP_VER_RES, 0xffffff, BLACK, 1, false);
|
||||
SIM_Display_START();
|
||||
SIM_Display_Init("LVGL", MY_DISP_HOR_RES, MY_DISP_VER_RES, 0xffffff, BLACK, 1, &lvgl_display);
|
||||
}
|
||||
|
||||
volatile bool disp_flush_enabled = true;
|
||||
@@ -186,7 +185,7 @@ static void disp_flush(lv_disp_drv_t* disp_drv, const lv_area_t* area, lv_color_
|
||||
color = (uint32_t*)malloc(sizeof(uint32_t) * l);
|
||||
|
||||
colortorgb24(color_p, color, l);
|
||||
SIM_Color_FillFromBuffer(color, area->x1, area->y1, area->x2, area->y2);
|
||||
SIM_Color_FillFromBuffer(&lvgl_display, color, area->x1, area->y1, area->x2, area->y2);
|
||||
free(color);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user