From 5304bf604436d1a54f31ea904b3506581082b816 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sat, 18 Nov 2023 15:41:46 +0100 Subject: [PATCH] chore: fix build error --- examples/widgets/img/lv_example_img_1.c | 2 +- src/dev/sdl/lv_sdl_window.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/widgets/img/lv_example_img_1.c b/examples/widgets/img/lv_example_img_1.c index 96e8da6fa..7aa6832d5 100644 --- a/examples/widgets/img/lv_example_img_1.c +++ b/examples/widgets/img/lv_example_img_1.c @@ -5,7 +5,7 @@ void lv_example_image_1(void) { LV_IMAGE_DECLARE(img_cogwheel_argb); lv_obj_t * img1 = lv_image_create(lv_screen_active()); - lv_image_set_src(img1, "A:lvgl/demos/widgets/assets/avatar.png"); + lv_image_set_src(img1, &img_cogwheel_argb); lv_obj_align(img1, LV_ALIGN_CENTER, 0, 0); lv_image_set_scale_x(img1, 512); lv_image_set_scale_y(img1, 128); diff --git a/src/dev/sdl/lv_sdl_window.c b/src/dev/sdl/lv_sdl_window.c index f0465efec..75e5b09ae 100644 --- a/src/dev/sdl/lv_sdl_window.c +++ b/src/dev/sdl/lv_sdl_window.c @@ -15,8 +15,6 @@ #define SDL_MAIN_HANDLED /*To fix SDL's "undefined reference to WinMain" issue*/ #include LV_SDL_INCLUDE_PATH -#include - /********************* * DEFINES *********************/