SDL_CameraInit to SDL_InitCamera

This commit is contained in:
Christmas-Missionary
2026-08-15 01:30:12 -04:00
committed by Ryan C. Gordon
parent 19758eb15d
commit 23401052e5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -565,7 +565,7 @@ bool SDL_InitSubSystem(SDL_InitFlags flags)
}
SDL_IncrementSubsystemRefCount(SDL_INIT_CAMERA);
if (!SDL_CameraInit(NULL)) {
if (!SDL_InitCamera(NULL)) {
SDL_DecrementSubsystemRefCount(SDL_INIT_CAMERA);
SDL_PushError();
SDL_QuitSubSystem(SDL_INIT_EVENTS);
+1 -1
View File
@@ -1477,7 +1477,7 @@ static void SDLCALL DestroyCameraHashItem(void *userdata, const void *key, const
SDL_free(device);
}
bool SDL_CameraInit(const char *driver_name)
bool SDL_InitCamera(const char *driver_name)
{
if (SDL_GetCurrentCameraDriver()) {
SDL_QuitCamera(); // shutdown driver if already running.
+1 -1
View File
@@ -24,7 +24,7 @@
#define SDL_camera_c_h_
// Initialize the camera subsystem
extern bool SDL_CameraInit(const char *driver_name);
extern bool SDL_InitCamera(const char *driver_name);
// Shutdown the camera subsystem
extern void SDL_QuitCamera(void);