chore: fix build error

This commit is contained in:
Gabor Kiss-Vamosi
2023-11-18 15:41:46 +01:00
parent 2f3e8d4066
commit 5304bf6044
2 changed files with 1 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ void lv_example_image_1(void)
{ {
LV_IMAGE_DECLARE(img_cogwheel_argb); LV_IMAGE_DECLARE(img_cogwheel_argb);
lv_obj_t * img1 = lv_image_create(lv_screen_active()); 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_obj_align(img1, LV_ALIGN_CENTER, 0, 0);
lv_image_set_scale_x(img1, 512); lv_image_set_scale_x(img1, 512);
lv_image_set_scale_y(img1, 128); lv_image_set_scale_y(img1, 128);

View File

@@ -15,8 +15,6 @@
#define SDL_MAIN_HANDLED /*To fix SDL's "undefined reference to WinMain" issue*/ #define SDL_MAIN_HANDLED /*To fix SDL's "undefined reference to WinMain" issue*/
#include LV_SDL_INCLUDE_PATH #include LV_SDL_INCLUDE_PATH
#include <SDL2/SDL_image.h>
/********************* /*********************
* DEFINES * DEFINES
*********************/ *********************/