video: lowercase some video backend names.

This commit is contained in:
Ryan C. Gordon 2024-01-25 15:22:57 -05:00
parent 02f59f3ae6
commit b8081e8e35
No known key found for this signature in database
GPG key ID: FA148B892AB48044
7 changed files with 8 additions and 6 deletions

View file

@ -1515,6 +1515,8 @@ SDL_GetRevisionNumber() has been removed from the API, it always returned 0 in S
## SDL_video.h ## SDL_video.h
Several video backends have had their names lower-cased ("kmsdrm", "rpi", "android", "psp", "ps2", "vita"). SDL already does a case-insensitive compare for SDL_HINT_VIDEO_DRIVER tests, but if your app is calling SDL_GetVideoDriver() or SDL_GetCurrentVideoDriver() and doing case-sensitive compares on those strings, please update your code.
SDL_VideoInit() and SDL_VideoQuit() have been removed. Instead you can call SDL_InitSubSystem() and SDL_QuitSubSystem() with SDL_INIT_VIDEO, which will properly refcount the subsystems. You can choose a specific video driver using SDL_VIDEO_DRIVER hint. SDL_VideoInit() and SDL_VideoQuit() have been removed. Instead you can call SDL_InitSubSystem() and SDL_QuitSubSystem() with SDL_INIT_VIDEO, which will properly refcount the subsystems. You can choose a specific video driver using SDL_VIDEO_DRIVER hint.
Rather than iterating over displays using display index, there is a new function SDL_GetDisplays() to get the current list of displays, and functions which used to take a display index now take SDL_DisplayID, with an invalid ID being 0. Rather than iterating over displays using display index, there is a new function SDL_GetDisplays() to get the current list of displays, and functions which used to take a display index now take SDL_DisplayID, with an invalid ID being 0.

View file

@ -40,7 +40,7 @@
#include "SDL_androidvulkan.h" #include "SDL_androidvulkan.h"
#include "SDL_androidmessagebox.h" #include "SDL_androidmessagebox.h"
#define ANDROID_VID_DRIVER_NAME "Android" #define ANDROID_VID_DRIVER_NAME "android"
/* Initialization/Query functions */ /* Initialization/Query functions */
static int Android_VideoInit(SDL_VideoDevice *_this); static int Android_VideoInit(SDL_VideoDevice *_this);

View file

@ -326,7 +326,7 @@ cleanup:
} }
VideoBootStrap KMSDRM_bootstrap = { VideoBootStrap KMSDRM_bootstrap = {
"KMSDRM", "kmsdrm",
"KMS/DRM Video Driver", "KMS/DRM Video Driver",
KMSDRM_CreateDevice, KMSDRM_CreateDevice,
NULL /* no ShowMessageBox implementation */ NULL /* no ShowMessageBox implementation */

View file

@ -111,7 +111,7 @@ static SDL_VideoDevice *PS2_CreateDevice(void)
} }
VideoBootStrap PS2_bootstrap = { VideoBootStrap PS2_bootstrap = {
"PS2", "ps2",
"PS2 Video Driver", "PS2 Video Driver",
PS2_CreateDevice, PS2_CreateDevice,
NULL /* no ShowMessageBox implementation */ NULL /* no ShowMessageBox implementation */

View file

@ -116,7 +116,7 @@ static SDL_VideoDevice *PSP_Create()
} }
VideoBootStrap PSP_bootstrap = { VideoBootStrap PSP_bootstrap = {
"PSP", "psp",
"PSP Video Driver", "PSP Video Driver",
PSP_Create, PSP_Create,
NULL /* no ShowMessageBox implementation */ NULL /* no ShowMessageBox implementation */

View file

@ -126,7 +126,7 @@ static SDL_VideoDevice *RPI_Create()
} }
VideoBootStrap RPI_bootstrap = { VideoBootStrap RPI_bootstrap = {
"RPI", "rpi",
"RPI Video Driver", "RPI Video Driver",
RPI_Create, RPI_Create,
NULL /* no ShowMessageBox implementation */ NULL /* no ShowMessageBox implementation */

View file

@ -157,7 +157,7 @@ static SDL_VideoDevice *VITA_Create()
} }
VideoBootStrap VITA_bootstrap = { VideoBootStrap VITA_bootstrap = {
"VITA", "vita",
"VITA Video Driver", "VITA Video Driver",
VITA_Create, VITA_Create,
VITA_ShowMessageBox VITA_ShowMessageBox