1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

single vdb macro fix for get_active and get_inactive

This commit is contained in:
Brian Pugh 2019-01-04 20:47:36 -08:00
parent 9c675a8e82
commit 752e752dbd

View File

@ -158,7 +158,11 @@ LV_ATTRIBUTE_FLUSH_READY void lv_flush_ready(void)
*/
lv_vdb_t * lv_vdb_get_active(void)
{
#if LV_VDB_DOUBLE == 0
return &vdb;
#else
return &vdb[vdb_active];
#endif
}
/**
@ -167,8 +171,11 @@ lv_vdb_t * lv_vdb_get_active(void)
*/
lv_vdb_t * lv_vdb_get_inactive(void)
{
#if LV_VDB_DOUBLE == 0
return &vdb;
#else
return &vdb[(vdb_active + 1) & 0x1];
#endif
}
/**