drivers/multiple/SDL2: rename UGFX_SDL_INIT_FLAGS to GFX_SDL_INIT_FLAGS

This commit is contained in:
Joel Bodenmann 2023-06-07 15:49:24 +02:00
parent d1279f5ef2
commit 3d543b62bc
2 changed files with 4 additions and 4 deletions

View File

@ -33,8 +33,8 @@
#ifndef GDISP_SCREEN_HEIGHT
#define GDISP_SCREEN_HEIGHT 480
#endif
#ifndef UGFX_SDL_INIT_FLAGS
#define UGFX_SDL_INIT_FLAGS SDL_INIT_EVERYTHING
#ifndef GFX_SDL_INIT_FLAGS
#define GFX_SDL_INIT_FLAGS SDL_INIT_EVERYTHING
#endif
#if GINPUT_NEED_MOUSE
@ -314,7 +314,7 @@ static void *SDL_input_event_loop (void *arg) {
// Must be executed on early stage of initialization: before threads and timer
void sdl_driver_init (void) {
if (SDL_Init(UGFX_SDL_INIT_FLAGS) != 0){
if (SDL_Init(GFX_SDL_INIT_FLAGS) != 0){
fprintf(stderr, "Unable to initialize SDL: %s\n", SDL_GetError());
exit (1) ;
}

View File

@ -26,5 +26,5 @@ and a touchscreen driver.
CFLAGS = `sdl2-config --libs --cflags`
By default, this driver will pass the `SDL_INIT_EVERYTHING` flag to SDL_Init(). This
can be overriden by defining the UGFX_SDL_INIT_FLAGS macro.
can be overriden by defining the GFX_SDL_INIT_FLAGS macro.