mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-17 17:32:09 +08:00
SDL_CameraInit to SDL_InitCamera
This commit is contained in:
committed by
Ryan C. Gordon
parent
19758eb15d
commit
23401052e5
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user