aboutsummaryrefslogtreecommitdiff
path: root/tests/unity/unity_support.c
diff options
context:
space:
mode:
authorGabor Kiss-Vamosi <kisvegabor@gmail.com>2023-08-31 19:54:30 +0200
committerGabor Kiss-Vamosi <kisvegabor@gmail.com>2023-08-31 19:54:36 +0200
commitc3e2120616cfda73a85ebaccdf9287e69a5c4218 (patch)
tree3a1ca18cbb33b116444a5391fc86030b49577941 /tests/unity/unity_support.c
parenta910736cbc847093d78ef4080a96364c3104e603 (diff)
downloadlvgl-c3e2120616cfda73a85ebaccdf9287e69a5c4218.tar.gz
lvgl-c3e2120616cfda73a85ebaccdf9287e69a5c4218.zip
feat(img): add img.header.stride
see https://github.com/lvgl/lvgl/pull/4414#issuecomment-1698538169
Diffstat (limited to 'tests/unity/unity_support.c')
-rw-r--r--tests/unity/unity_support.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/unity/unity_support.c b/tests/unity/unity_support.c
index 7a22ece98..6146fa35a 100644
--- a/tests/unity/unity_support.c
+++ b/tests/unity/unity_support.c
@@ -13,7 +13,6 @@
*********************/
#if LV_BUILD_TEST
#include "../lvgl.h"
-
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -69,14 +68,12 @@ bool lv_test_assert_img_eq(const char * fn_ref)
char fn_ref_full[512];
sprintf(fn_ref_full, "%s%s", REF_IMGS_PATH, fn_ref);
- uint8_t * screen_buf;
- lv_obj_invalidate(lv_scr_act());
+ //lv_obj_invalidate(lv_scr_act());
lv_refr_now(NULL);
- extern lv_color32_t test_fb[];
-
- screen_buf = (uint8_t *)test_fb;
+ extern uint8_t * last_flushed_buf;
+ uint8_t * screen_buf = last_flushed_buf;
png_img_t p;
int res = read_png_file(&p, fn_ref_full);