LV_VDB_DOUBLE: tested on STM32F429 Discovery
This commit is contained in:
@@ -146,6 +146,14 @@ const lv_app_dsc_t * lv_app_benchmark_init(void)
|
|||||||
static void my_app_run(lv_app_inst_t * app, void * conf)
|
static void my_app_run(lv_app_inst_t * app, void * conf)
|
||||||
{
|
{
|
||||||
/*Initialize the application*/
|
/*Initialize the application*/
|
||||||
|
my_app_data_t * ad = app->app_data;
|
||||||
|
ad->opa = 0;
|
||||||
|
ad->recolor = 0;
|
||||||
|
ad->shdw = 0;
|
||||||
|
ad->upscalse = 0;
|
||||||
|
ad->wp = 0;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#if LV_VDB_SIZE
|
#if LV_VDB_SIZE
|
||||||
/* Double virtual buffering
|
/* Double virtual buffering
|
||||||
* One for rendering another to transfer former rendered image to frame buffer in the background*/
|
* One for rendering another to transfer former rendered image to frame buffer in the background*/
|
||||||
#define LV_VDB_DOUBLE 1
|
#define LV_VDB_DOUBLE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LV_REFR_PERIOD 40 /*Screen refresh period in milliseconds*/
|
#define LV_REFR_PERIOD 40 /*Screen refresh period in milliseconds*/
|
||||||
|
|||||||
@@ -123,8 +123,7 @@ void lv_vfill(const area_t * cords_p, const area_t * mask_p,
|
|||||||
cord_t map_width = area_get_width(&vdb_rel_a);
|
cord_t map_width = area_get_width(&vdb_rel_a);
|
||||||
if(color_map[0].full != color.full || last_width != map_width) {
|
if(color_map[0].full != color.full || last_width != map_width) {
|
||||||
uint16_t i;
|
uint16_t i;
|
||||||
|
for(i = 0; i < map_width; i++) {
|
||||||
for(i =0; i < map_width; i++) {
|
|
||||||
color_map[i].full = color.full;
|
color_map[i].full = color.full;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,7 +132,6 @@ void lv_vfill(const area_t * cords_p, const area_t * mask_p,
|
|||||||
cord_t row;
|
cord_t row;
|
||||||
for(row = vdb_rel_a.y1;row <= vdb_rel_a.y2; row++) {
|
for(row = vdb_rel_a.y1;row <= vdb_rel_a.y2; row++) {
|
||||||
disp_color_cpy(&vdb_buf_tmp[vdb_rel_a.x1], color_map, map_width, opa);
|
disp_color_cpy(&vdb_buf_tmp[vdb_rel_a.x1], color_map, map_width, opa);
|
||||||
|
|
||||||
vdb_buf_tmp += vdb_width;
|
vdb_buf_tmp += vdb_width;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user