Fixed building with the video subsystem disabled
This commit is contained in:
@@ -436,48 +436,3 @@ DECLSPEC int MINGW32_FORCEALIGN SDL_RunApp(int _argc, char* _argv[], SDL_main_fu
|
|||||||
#endif /* __WIN32__ */
|
#endif /* __WIN32__ */
|
||||||
|
|
||||||
#endif /* defined(__WIN32__) || defined(__WINRT__) || defined(__GDK__) */
|
#endif /* defined(__WIN32__) || defined(__WINRT__) || defined(__GDK__) */
|
||||||
|
|
||||||
/*
|
|
||||||
* Public APIs
|
|
||||||
*/
|
|
||||||
#ifndef SDL_VIDEO_DRIVER_WINDOWS
|
|
||||||
|
|
||||||
#if defined(__WIN32__) || defined(__GDK__)
|
|
||||||
int SDL_RegisterApp(const char *name, Uint32 style, void *hInst)
|
|
||||||
{
|
|
||||||
(void)name;
|
|
||||||
(void)style;
|
|
||||||
(void)hInst;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SDL_UnregisterApp(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif /* __WIN32__ || __GDK__ */
|
|
||||||
|
|
||||||
#if defined(__WIN32__) || defined(__WINGDK__)
|
|
||||||
int SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID)
|
|
||||||
{
|
|
||||||
(void)displayID;
|
|
||||||
return 0; /* D3DADAPTER_DEFAULT */
|
|
||||||
}
|
|
||||||
|
|
||||||
SDL_bool SDL_DXGIGetOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex)
|
|
||||||
{
|
|
||||||
(void)displayID;
|
|
||||||
if (adapterIndex) {
|
|
||||||
*adapterIndex = -1;
|
|
||||||
}
|
|
||||||
if (outputIndex) {
|
|
||||||
*outputIndex = -1;
|
|
||||||
}
|
|
||||||
return SDL_FALSE;
|
|
||||||
}
|
|
||||||
#endif /* __WIN32__ || __WINGDK__ */
|
|
||||||
|
|
||||||
#endif /* !SDL_VIDEO_DRIVER_WINDOWS */
|
|
||||||
|
|||||||
@@ -22,7 +22,26 @@
|
|||||||
|
|
||||||
#ifndef SDL_VIDEO_DRIVER_WINDOWS
|
#ifndef SDL_VIDEO_DRIVER_WINDOWS
|
||||||
|
|
||||||
DECLSPEC SDL_bool SDLCALL SDL_DXGIGetOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex);
|
#if defined(__WIN32__) || defined(__GDK__)
|
||||||
|
|
||||||
|
int SDL_RegisterApp(const char *name, Uint32 style, void *hInst)
|
||||||
|
{
|
||||||
|
(void)name;
|
||||||
|
(void)style;
|
||||||
|
(void)hInst;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SDL_UnregisterApp(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* __WIN32__ || __GDK__ */
|
||||||
|
|
||||||
SDL_bool SDL_DXGIGetOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex)
|
SDL_bool SDL_DXGIGetOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex)
|
||||||
{
|
{
|
||||||
(void)displayID;
|
(void)displayID;
|
||||||
@@ -32,18 +51,24 @@ SDL_bool SDL_DXGIGetOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *
|
|||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
DECLSPEC int SDLCALL SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID);
|
|
||||||
int SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID)
|
int SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID)
|
||||||
{
|
{
|
||||||
(void)displayID;
|
(void)displayID;
|
||||||
return SDL_Unsupported();
|
return SDL_Unsupported();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#elif defined(__XBOXONE__) || defined(__XBOXSERIES__)
|
||||||
|
|
||||||
|
int SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID)
|
||||||
|
{
|
||||||
|
(void)displayID;
|
||||||
|
return SDL_Unsupported();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* !SDL_VIDEO_DRIVER_WINDOWS */
|
||||||
|
|
||||||
#ifndef __GDK__
|
#ifndef __GDK__
|
||||||
|
|
||||||
DECLSPEC int SDLCALL SDL_GDKGetTaskQueue(void *outTaskQueue);
|
|
||||||
int SDL_GDKGetTaskQueue(void *outTaskQueue)
|
int SDL_GDKGetTaskQueue(void *outTaskQueue)
|
||||||
{
|
{
|
||||||
(void)outTaskQueue;
|
(void)outTaskQueue;
|
||||||
@@ -54,7 +79,6 @@ int SDL_GDKGetTaskQueue(void *outTaskQueue)
|
|||||||
|
|
||||||
#ifndef SDL_VIDEO_DRIVER_UIKIT
|
#ifndef SDL_VIDEO_DRIVER_UIKIT
|
||||||
|
|
||||||
DECLSPEC void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation(void);
|
|
||||||
void SDL_OnApplicationDidChangeStatusBarOrientation(void)
|
void SDL_OnApplicationDidChangeStatusBarOrientation(void)
|
||||||
{
|
{
|
||||||
SDL_Unsupported();
|
SDL_Unsupported();
|
||||||
@@ -64,7 +88,6 @@ void SDL_OnApplicationDidChangeStatusBarOrientation(void)
|
|||||||
|
|
||||||
#ifndef SDL_VIDEO_DRIVER_UIKIT
|
#ifndef SDL_VIDEO_DRIVER_UIKIT
|
||||||
|
|
||||||
DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam);
|
|
||||||
int SDL_iPhoneSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam)
|
int SDL_iPhoneSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam)
|
||||||
{
|
{
|
||||||
(void)window;
|
(void)window;
|
||||||
@@ -74,7 +97,6 @@ int SDL_iPhoneSetAnimationCallback(SDL_Window *window, int interval, void (*call
|
|||||||
return SDL_Unsupported();
|
return SDL_Unsupported();
|
||||||
}
|
}
|
||||||
|
|
||||||
DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
|
|
||||||
void SDL_iPhoneSetEventPump(SDL_bool enabled)
|
void SDL_iPhoneSetEventPump(SDL_bool enabled)
|
||||||
{
|
{
|
||||||
(void)enabled;
|
(void)enabled;
|
||||||
@@ -82,10 +104,3 @@ void SDL_iPhoneSetEventPump(SDL_bool enabled)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__XBOXONE__) || defined(__XBOXSERIES__)
|
|
||||||
int SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID)
|
|
||||||
{
|
|
||||||
(void)displayID;
|
|
||||||
return SDL_Unsupported();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user