fix(sdl): fix warning (#4048)

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
_VIFEXTech 2023-03-13 20:41:32 +08:00 committed by GitHub
parent 126fbee5ae
commit 0449c400b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -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*/

View File

@ -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

View File

@ -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*/