mirror of
https://github.com/lvgl/lvgl.git
synced 2024-12-04 15:14:03 +08:00
fix(sdl): fix warning (#4048)
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
parent
126fbee5ae
commit
0449c400b8
@ -753,6 +753,7 @@
|
||||
#if LV_USE_SDL
|
||||
#define LV_SDL_INCLUDE_PATH <SDL2/SDL.h>
|
||||
#define LV_SDL_PARTIAL_MODE 0 /*Recommended only to emulate a setup with a display controller*/
|
||||
#define LV_SDL_FULLSCREEN 0
|
||||
#endif
|
||||
|
||||
/*Driver for /dev/fb*/
|
||||
|
@ -229,7 +229,7 @@ static void window_create(lv_disp_t * disp)
|
||||
dsc->zoom = 1;
|
||||
|
||||
int flag = SDL_WINDOW_RESIZABLE;
|
||||
#if SDL_FULLSCREEN
|
||||
#if LV_SDL_FULLSCREEN
|
||||
flag |= SDL_WINDOW_FULLSCREEN;
|
||||
#endif
|
||||
|
||||
|
@ -2511,6 +2511,13 @@
|
||||
#define LV_SDL_PARTIAL_MODE 0 /*Recommended only to emulate a setup with a display controller*/
|
||||
#endif
|
||||
#endif
|
||||
#ifndef LV_SDL_FULLSCREEN
|
||||
#ifdef CONFIG_LV_SDL_FULLSCREEN
|
||||
#define LV_SDL_FULLSCREEN CONFIG_LV_SDL_FULLSCREEN
|
||||
#else
|
||||
#define LV_SDL_FULLSCREEN 0
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Driver for /dev/fb*/
|
||||
|
Loading…
Reference in New Issue
Block a user