feat(draw): add implements vector graphic APIs (#4528) (#4691)

Signed-off-by: zhangjipeng <zhangjipeng@xiaomi.com>
Co-authored-by: zhangjipeng <zhangjipeng@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
Zhang Ji Peng
2023-11-09 18:37:33 +08:00
committed by GitHub
parent 3bb649db7f
commit 8cf0bbb558
108 changed files with 30939 additions and 12 deletions
+3 -1
View File
@@ -103,11 +103,12 @@ bool lv_test_assert_image_eq(const char * fn_ref)
uint32_t act_px = 0;
memcpy(&ref_px, ptr_ref, 3);
memcpy(&act_px, ptr_act, 3);
//printf("0xFF%06x, ", act_px);
uint8_t act_swap[3] = {ptr_act[2], ptr_act[1], ptr_act[0]};
if(memcmp(act_swap, ptr_ref, 3) != 0) {
TEST_PRINTF("Error on x:%d, y:%d. Expected %X, Actual %X", x, y, ref_px, act_px);
fflush(stderr);
err = true;
break;
}
@@ -130,6 +131,7 @@ bool lv_test_assert_image_eq(const char * fn_ref)
png_release(&p);
fflush(stdout);
return !err;
}