mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-26 11:23:43 +02:00
Macros that papered over this difference in SDL2 have been removed for SDL3. Fixes #9527.
114 lines
3.1 KiB
C
114 lines
3.1 KiB
C
/*
|
|
Simple DirectMedia Layer
|
|
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
warranty. In no event will the authors be held liable for any damages
|
|
arising from the use of this software.
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
including commercial applications, and to alter it and redistribute it
|
|
freely, subject to the following restrictions:
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
claim that you wrote the original software. If you use this software
|
|
in a product, an acknowledgment in the product documentation would be
|
|
appreciated but is not required.
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
misrepresented as being the original software.
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
*/
|
|
#include "SDL_internal.h"
|
|
|
|
#ifndef SDL_VIDEO_DRIVER_WINDOWS
|
|
|
|
#if defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_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 /* SDL_PLATFORM_WIN32 || SDL_PLATFORM_GDK */
|
|
|
|
DECLSPEC SDL_bool SDLCALL SDL_DXGIGetOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex);
|
|
SDL_bool SDL_DXGIGetOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex)
|
|
{
|
|
(void)displayID;
|
|
(void)adapterIndex;
|
|
(void)outputIndex;
|
|
SDL_Unsupported();
|
|
return SDL_FALSE;
|
|
}
|
|
|
|
DECLSPEC int SDLCALL SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID);
|
|
int SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID)
|
|
{
|
|
(void)displayID;
|
|
return SDL_Unsupported();
|
|
}
|
|
|
|
#elif defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES)
|
|
|
|
DECLSPEC int SDLCALL SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID);
|
|
int SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID)
|
|
{
|
|
(void)displayID;
|
|
return SDL_Unsupported();
|
|
}
|
|
|
|
#endif /* !SDL_VIDEO_DRIVER_WINDOWS */
|
|
|
|
#ifndef SDL_PLATFORM_GDK
|
|
|
|
DECLSPEC int SDLCALL SDL_GDKGetTaskQueue(void *outTaskQueue);
|
|
int SDL_GDKGetTaskQueue(void *outTaskQueue)
|
|
{
|
|
(void)outTaskQueue;
|
|
return SDL_Unsupported();
|
|
}
|
|
|
|
#endif
|
|
|
|
#ifndef SDL_VIDEO_DRIVER_UIKIT
|
|
|
|
DECLSPEC void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation(void);
|
|
void SDL_OnApplicationDidChangeStatusBarOrientation(void)
|
|
{
|
|
SDL_Unsupported();
|
|
}
|
|
|
|
#endif
|
|
|
|
#ifndef SDL_VIDEO_DRIVER_UIKIT
|
|
|
|
DECLSPEC int SDLCALL SDL_iOSSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam);
|
|
int SDL_iOSSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam)
|
|
{
|
|
(void)window;
|
|
(void)interval;
|
|
(void)callback;
|
|
(void)callbackParam;
|
|
return SDL_Unsupported();
|
|
}
|
|
|
|
DECLSPEC void SDLCALL SDL_iOSSetEventPump(SDL_bool enabled);
|
|
void SDL_iOSSetEventPump(SDL_bool enabled)
|
|
{
|
|
(void)enabled;
|
|
SDL_Unsupported();
|
|
}
|
|
#endif
|
|
|