SDL: video: lowercase some video backend names.

From b8081e8e357591bea3ecf4d00ca99829183e2d3c Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 25 Jan 2024 15:22:57 -0500
Subject: [PATCH] video: lowercase some video backend names.

---
 docs/README-migration.md             | 2 ++
 src/video/android/SDL_androidvideo.c | 2 +-
 src/video/kmsdrm/SDL_kmsdrmvideo.c   | 2 +-
 src/video/ps2/SDL_ps2video.c         | 2 +-
 src/video/psp/SDL_pspvideo.c         | 2 +-
 src/video/raspberry/SDL_rpivideo.c   | 2 +-
 src/video/vita/SDL_vitavideo.c       | 2 +-
 7 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/docs/README-migration.md b/docs/README-migration.md
index a3710534e2c0..60cc68c693ee 100644
--- a/docs/README-migration.md
+++ b/docs/README-migration.md
@@ -1515,6 +1515,8 @@ SDL_GetRevisionNumber() has been removed from the API, it always returned 0 in S
 
 ## 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.
 
 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.
diff --git a/src/video/android/SDL_androidvideo.c b/src/video/android/SDL_androidvideo.c
index 6d759e24f580..17f7e57048f6 100644
--- a/src/video/android/SDL_androidvideo.c
+++ b/src/video/android/SDL_androidvideo.c
@@ -40,7 +40,7 @@
 #include "SDL_androidvulkan.h"
 #include "SDL_androidmessagebox.h"
 
-#define ANDROID_VID_DRIVER_NAME "Android"
+#define ANDROID_VID_DRIVER_NAME "android"
 
 /* Initialization/Query functions */
 static int Android_VideoInit(SDL_VideoDevice *_this);
diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c
index 58c08d852fed..d75c0302f266 100644
--- a/src/video/kmsdrm/SDL_kmsdrmvideo.c
+++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c
@@ -326,7 +326,7 @@ static SDL_VideoDevice *KMSDRM_CreateDevice(void)
 }
 
 VideoBootStrap KMSDRM_bootstrap = {
-    "KMSDRM",
+    "kmsdrm",
     "KMS/DRM Video Driver",
     KMSDRM_CreateDevice,
     NULL /* no ShowMessageBox implementation */
diff --git a/src/video/ps2/SDL_ps2video.c b/src/video/ps2/SDL_ps2video.c
index 9a4b7e698ce9..cb29cf0015df 100644
--- a/src/video/ps2/SDL_ps2video.c
+++ b/src/video/ps2/SDL_ps2video.c
@@ -111,7 +111,7 @@ static SDL_VideoDevice *PS2_CreateDevice(void)
 }
 
 VideoBootStrap PS2_bootstrap = {
-    "PS2",
+    "ps2",
     "PS2 Video Driver",
     PS2_CreateDevice,
     NULL /* no ShowMessageBox implementation */
diff --git a/src/video/psp/SDL_pspvideo.c b/src/video/psp/SDL_pspvideo.c
index b702466028f7..f3591e832c76 100644
--- a/src/video/psp/SDL_pspvideo.c
+++ b/src/video/psp/SDL_pspvideo.c
@@ -116,7 +116,7 @@ static SDL_VideoDevice *PSP_Create()
 }
 
 VideoBootStrap PSP_bootstrap = {
-    "PSP",
+    "psp",
     "PSP Video Driver",
     PSP_Create,
     NULL /* no ShowMessageBox implementation */
diff --git a/src/video/raspberry/SDL_rpivideo.c b/src/video/raspberry/SDL_rpivideo.c
index 03c08de97ebe..222a50fb0375 100644
--- a/src/video/raspberry/SDL_rpivideo.c
+++ b/src/video/raspberry/SDL_rpivideo.c
@@ -126,7 +126,7 @@ static SDL_VideoDevice *RPI_Create()
 }
 
 VideoBootStrap RPI_bootstrap = {
-    "RPI",
+    "rpi",
     "RPI Video Driver",
     RPI_Create,
     NULL /* no ShowMessageBox implementation */
diff --git a/src/video/vita/SDL_vitavideo.c b/src/video/vita/SDL_vitavideo.c
index c6a44faef511..76bb9c777533 100644
--- a/src/video/vita/SDL_vitavideo.c
+++ b/src/video/vita/SDL_vitavideo.c
@@ -157,7 +157,7 @@ static SDL_VideoDevice *VITA_Create()
 }
 
 VideoBootStrap VITA_bootstrap = {
-    "VITA",
+    "vita",
     "VITA Video Driver",
     VITA_Create,
     VITA_ShowMessageBox