chore: fix build error
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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
|
||||||
*********************/
|
*********************/
|
||||||
|
|||||||
Reference in New Issue
Block a user