mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 23:49:12 +00:00
Fix warning for Android NDK compiler: "function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]"
https://stackoverflow.com/questions/42125/warning-error-function-declaration-isnt-a-prototype In C int foo() and int foo(void) are different functions. int foo() accepts an arbitrary number of arguments, while int foo(void) accepts 0 arguments. In C++ they mean the same thing.
This commit is contained in:
parent
94c40fb3c9
commit
5db08b86ca
44 changed files with 101 additions and 101 deletions
|
@ -453,7 +453,7 @@ static float Sinc(float *table, int x, int y)
|
||||||
|
|
||||||
static Cubic ResamplerFilter[RESAMPLER_SAMPLES_PER_ZERO_CROSSING][RESAMPLER_SAMPLES_PER_FRAME];
|
static Cubic ResamplerFilter[RESAMPLER_SAMPLES_PER_ZERO_CROSSING][RESAMPLER_SAMPLES_PER_FRAME];
|
||||||
|
|
||||||
static void GenerateResamplerFilter()
|
static void GenerateResamplerFilter(void)
|
||||||
{
|
{
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -179,7 +179,7 @@ static int load_pipewire_syms(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int init_pipewire_library()
|
static int init_pipewire_library(void)
|
||||||
{
|
{
|
||||||
if (!load_pipewire_library()) {
|
if (!load_pipewire_library()) {
|
||||||
if (!load_pipewire_syms()) {
|
if (!load_pipewire_syms()) {
|
||||||
|
|
|
@ -97,7 +97,7 @@ void SDL_UnregisterApp(void)
|
||||||
|
|
||||||
/* Returns SDL_WinRT_DeviceFamily enum */
|
/* Returns SDL_WinRT_DeviceFamily enum */
|
||||||
SDL_DECLSPEC int SDLCALL SDL_GetWinRTDeviceFamily(void);
|
SDL_DECLSPEC int SDLCALL SDL_GetWinRTDeviceFamily(void);
|
||||||
int SDL_GetWinRTDeviceFamily()
|
int SDL_GetWinRTDeviceFamily(void)
|
||||||
{
|
{
|
||||||
SDL_Unsupported();
|
SDL_Unsupported();
|
||||||
return 0; /* SDL_WINRT_DEVICEFAMILY_UNKNOWN */
|
return 0; /* SDL_WINRT_DEVICEFAMILY_UNKNOWN */
|
||||||
|
@ -115,20 +115,20 @@ const char *SDL_GetWinRTFSPath(int pathType)
|
||||||
#ifndef SDL_PLATFORM_ANDROID
|
#ifndef SDL_PLATFORM_ANDROID
|
||||||
|
|
||||||
SDL_DECLSPEC void SDLCALL SDL_SendAndroidBackButton(void);
|
SDL_DECLSPEC void SDLCALL SDL_SendAndroidBackButton(void);
|
||||||
void SDL_SendAndroidBackButton()
|
void SDL_SendAndroidBackButton(void)
|
||||||
{
|
{
|
||||||
SDL_Unsupported();
|
SDL_Unsupported();
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_DECLSPEC void *SDLCALL SDL_GetAndroidActivity(void);
|
SDL_DECLSPEC void *SDLCALL SDL_GetAndroidActivity(void);
|
||||||
void *SDL_GetAndroidActivity()
|
void *SDL_GetAndroidActivity(void)
|
||||||
{
|
{
|
||||||
SDL_Unsupported();
|
SDL_Unsupported();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_DECLSPEC const char *SDLCALL SDL_GetAndroidCachePath(void);
|
SDL_DECLSPEC const char *SDLCALL SDL_GetAndroidCachePath(void);
|
||||||
const char* SDL_GetAndroidCachePath()
|
const char* SDL_GetAndroidCachePath(void)
|
||||||
{
|
{
|
||||||
SDL_Unsupported();
|
SDL_Unsupported();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -136,7 +136,7 @@ const char* SDL_GetAndroidCachePath()
|
||||||
|
|
||||||
|
|
||||||
SDL_DECLSPEC const char *SDLCALL SDL_GetAndroidExternalStoragePath(void);
|
SDL_DECLSPEC const char *SDLCALL SDL_GetAndroidExternalStoragePath(void);
|
||||||
const char* SDL_GetAndroidExternalStoragePath()
|
const char* SDL_GetAndroidExternalStoragePath(void)
|
||||||
{
|
{
|
||||||
SDL_Unsupported();
|
SDL_Unsupported();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -156,7 +156,7 @@ const char *SDL_GetAndroidInternalStoragePath(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_DECLSPEC void *SDLCALL SDL_GetAndroidJNIEnv(void);
|
SDL_DECLSPEC void *SDLCALL SDL_GetAndroidJNIEnv(void);
|
||||||
void *SDL_GetAndroidJNIEnv()
|
void *SDL_GetAndroidJNIEnv(void)
|
||||||
{
|
{
|
||||||
SDL_Unsupported();
|
SDL_Unsupported();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -192,20 +192,20 @@ int SDL_ShowAndroidToast(const char* message, int duration, int gravity, int xof
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_DECLSPEC int SDLCALL SDL_GetAndroidSDKVersion(void);
|
SDL_DECLSPEC int SDLCALL SDL_GetAndroidSDKVersion(void);
|
||||||
int SDL_GetAndroidSDKVersion()
|
int SDL_GetAndroidSDKVersion(void)
|
||||||
{
|
{
|
||||||
return SDL_Unsupported();
|
return SDL_Unsupported();
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_DECLSPEC SDL_bool SDLCALL SDL_IsAndroidTV(void);
|
SDL_DECLSPEC SDL_bool SDLCALL SDL_IsAndroidTV(void);
|
||||||
SDL_bool SDL_IsAndroidTV()
|
SDL_bool SDL_IsAndroidTV(void)
|
||||||
{
|
{
|
||||||
SDL_Unsupported();
|
SDL_Unsupported();
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_DECLSPEC SDL_bool SDLCALL SDL_IsChromebook(void);
|
SDL_DECLSPEC SDL_bool SDLCALL SDL_IsChromebook(void);
|
||||||
SDL_bool SDL_IsChromebook()
|
SDL_bool SDL_IsChromebook(void)
|
||||||
{
|
{
|
||||||
SDL_Unsupported();
|
SDL_Unsupported();
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
|
|
|
@ -898,18 +898,18 @@ JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeDropFile)(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Lock / Unlock Mutex */
|
/* Lock / Unlock Mutex */
|
||||||
void Android_ActivityMutex_Lock()
|
void Android_ActivityMutex_Lock(void)
|
||||||
{
|
{
|
||||||
SDL_LockMutex(Android_ActivityMutex);
|
SDL_LockMutex(Android_ActivityMutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Android_ActivityMutex_Unlock()
|
void Android_ActivityMutex_Unlock(void)
|
||||||
{
|
{
|
||||||
SDL_UnlockMutex(Android_ActivityMutex);
|
SDL_UnlockMutex(Android_ActivityMutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Lock the Mutex when the Activity is in its 'Running' state */
|
/* Lock the Mutex when the Activity is in its 'Running' state */
|
||||||
void Android_ActivityMutex_Lock_Running()
|
void Android_ActivityMutex_Lock_Running(void)
|
||||||
{
|
{
|
||||||
int pauseSignaled = 0;
|
int pauseSignaled = 0;
|
||||||
int resumeSignaled = 0;
|
int resumeSignaled = 0;
|
||||||
|
@ -1561,13 +1561,13 @@ void Android_JNI_SetOrientation(int w, int h, int resizable, const char *hint)
|
||||||
(*env)->DeleteLocalRef(env, jhint);
|
(*env)->DeleteLocalRef(env, jhint);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Android_JNI_MinizeWindow()
|
void Android_JNI_MinizeWindow(void)
|
||||||
{
|
{
|
||||||
JNIEnv *env = Android_JNI_GetEnv();
|
JNIEnv *env = Android_JNI_GetEnv();
|
||||||
(*env)->CallStaticVoidMethod(env, mActivityClass, midMinimizeWindow);
|
(*env)->CallStaticVoidMethod(env, mActivityClass, midMinimizeWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_bool Android_JNI_ShouldMinimizeOnFocusLoss()
|
SDL_bool Android_JNI_ShouldMinimizeOnFocusLoss(void)
|
||||||
{
|
{
|
||||||
JNIEnv *env = Android_JNI_GetEnv();
|
JNIEnv *env = Android_JNI_GetEnv();
|
||||||
return (*env)->CallStaticBooleanMethod(env, mActivityClass, midShouldMinimizeOnFocusLoss);
|
return (*env)->CallStaticBooleanMethod(env, mActivityClass, midShouldMinimizeOnFocusLoss);
|
||||||
|
@ -1947,7 +1947,7 @@ static SDL_bool Android_JNI_ExceptionOccurred(SDL_bool silent)
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Internal_Android_Create_AssetManager()
|
static void Internal_Android_Create_AssetManager(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
struct LocalReferenceHolder refs = LocalReferenceHolder_Setup(__FUNCTION__);
|
struct LocalReferenceHolder refs = LocalReferenceHolder_Setup(__FUNCTION__);
|
||||||
|
@ -1986,7 +1986,7 @@ static void Internal_Android_Create_AssetManager()
|
||||||
LocalReferenceHolder_Cleanup(&refs);
|
LocalReferenceHolder_Cleanup(&refs);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Internal_Android_Destroy_AssetManager()
|
static void Internal_Android_Destroy_AssetManager(void)
|
||||||
{
|
{
|
||||||
JNIEnv *env = Android_JNI_GetEnv();
|
JNIEnv *env = Android_JNI_GetEnv();
|
||||||
|
|
||||||
|
@ -2206,7 +2206,7 @@ int Android_JNI_GetPowerInfo(int *plugged, int *charged, int *battery, int *seco
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add all touch devices */
|
/* Add all touch devices */
|
||||||
void Android_JNI_InitTouch()
|
void Android_JNI_InitTouch(void)
|
||||||
{
|
{
|
||||||
JNIEnv *env = Android_JNI_GetEnv();
|
JNIEnv *env = Android_JNI_GetEnv();
|
||||||
(*env)->CallStaticVoidMethod(env, mActivityClass, midInitTouch);
|
(*env)->CallStaticVoidMethod(env, mActivityClass, midInitTouch);
|
||||||
|
|
|
@ -133,7 +133,7 @@ static void kbd_cleanup_signal_action(int signum, siginfo_t *info, void *ucontex
|
||||||
SDL_EVDEV_kbd_reraise_signal(signum);
|
SDL_EVDEV_kbd_reraise_signal(signum);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void kbd_unregister_emerg_cleanup()
|
static void kbd_unregister_emerg_cleanup(void)
|
||||||
{
|
{
|
||||||
int tabidx;
|
int tabidx;
|
||||||
|
|
||||||
|
|
|
@ -452,7 +452,7 @@ static SDL_WSCONS_input_data *SDL_WSCONS_Init_Keyboard(const char *dev)
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_WSCONS_Init()
|
void SDL_WSCONS_Init(void)
|
||||||
{
|
{
|
||||||
inputs[0] = SDL_WSCONS_Init_Keyboard("/dev/wskbd0");
|
inputs[0] = SDL_WSCONS_Init_Keyboard("/dev/wskbd0");
|
||||||
inputs[1] = SDL_WSCONS_Init_Keyboard("/dev/wskbd1");
|
inputs[1] = SDL_WSCONS_Init_Keyboard("/dev/wskbd1");
|
||||||
|
@ -463,7 +463,7 @@ void SDL_WSCONS_Init()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_WSCONS_Quit()
|
void SDL_WSCONS_Quit(void)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
SDL_WSCONS_input_data *input = NULL;
|
SDL_WSCONS_input_data *input = NULL;
|
||||||
|
@ -924,7 +924,7 @@ static void updateKeyboard(SDL_WSCONS_input_data *input)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_WSCONS_PumpEvents()
|
void SDL_WSCONS_PumpEvents(void)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
|
|
|
@ -35,7 +35,7 @@ typedef struct SDL_WSCONS_mouse_input_data
|
||||||
SDL_MouseID mouseID;
|
SDL_MouseID mouseID;
|
||||||
} SDL_WSCONS_mouse_input_data;
|
} SDL_WSCONS_mouse_input_data;
|
||||||
|
|
||||||
SDL_WSCONS_mouse_input_data *SDL_WSCONS_Init_Mouse()
|
SDL_WSCONS_mouse_input_data *SDL_WSCONS_Init_Mouse(void)
|
||||||
{
|
{
|
||||||
#ifdef WSMOUSEIO_SETVERSION
|
#ifdef WSMOUSEIO_SETVERSION
|
||||||
int version = WSMOUSE_EVENT_VERSION;
|
int version = WSMOUSE_EVENT_VERSION;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "SDL_appid.h"
|
#include "SDL_appid.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
const char *SDL_GetExeName()
|
const char *SDL_GetExeName(void)
|
||||||
{
|
{
|
||||||
static const char *proc_name = NULL;
|
static const char *proc_name = NULL;
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ const char *SDL_GetExeName()
|
||||||
return proc_name;
|
return proc_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *SDL_GetAppID()
|
const char *SDL_GetAppID(void)
|
||||||
{
|
{
|
||||||
/* Always check the hint, as it may have changed */
|
/* Always check the hint, as it may have changed */
|
||||||
const char *id_str = SDL_GetHint(SDL_HINT_APP_ID);
|
const char *id_str = SDL_GetHint(SDL_HINT_APP_ID);
|
||||||
|
|
|
@ -454,7 +454,7 @@ static struct usb_string_cache_entry *usb_string_cache = NULL;
|
||||||
static size_t usb_string_cache_size = 0;
|
static size_t usb_string_cache_size = 0;
|
||||||
static size_t usb_string_cache_insert_pos = 0;
|
static size_t usb_string_cache_insert_pos = 0;
|
||||||
|
|
||||||
static int usb_string_cache_grow()
|
static int usb_string_cache_grow(void)
|
||||||
{
|
{
|
||||||
struct usb_string_cache_entry *new_cache;
|
struct usb_string_cache_entry *new_cache;
|
||||||
size_t allocSize;
|
size_t allocSize;
|
||||||
|
@ -472,7 +472,7 @@ static int usb_string_cache_grow()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void usb_string_cache_destroy()
|
static void usb_string_cache_destroy(void)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i = 0; i < usb_string_cache_insert_pos; i++) {
|
for (i = 0; i < usb_string_cache_insert_pos; i++) {
|
||||||
|
@ -486,7 +486,7 @@ static void usb_string_cache_destroy()
|
||||||
usb_string_cache_insert_pos = 0;
|
usb_string_cache_insert_pos = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct usb_string_cache_entry *usb_string_cache_insert()
|
static struct usb_string_cache_entry *usb_string_cache_insert(void)
|
||||||
{
|
{
|
||||||
struct usb_string_cache_entry *new_entry = NULL;
|
struct usb_string_cache_entry *new_entry = NULL;
|
||||||
if (usb_string_cache_insert_pos >= usb_string_cache_size) {
|
if (usb_string_cache_insert_pos >= usb_string_cache_size) {
|
||||||
|
|
|
@ -119,7 +119,7 @@ static HMODULE hid_lib_handle = NULL;
|
||||||
static HMODULE cfgmgr32_lib_handle = NULL;
|
static HMODULE cfgmgr32_lib_handle = NULL;
|
||||||
static BOOLEAN hidapi_initialized = FALSE;
|
static BOOLEAN hidapi_initialized = FALSE;
|
||||||
|
|
||||||
static void free_library_handles()
|
static void free_library_handles(void)
|
||||||
{
|
{
|
||||||
if (hid_lib_handle)
|
if (hid_lib_handle)
|
||||||
FreeLibrary(hid_lib_handle);
|
FreeLibrary(hid_lib_handle);
|
||||||
|
@ -134,7 +134,7 @@ static void free_library_handles()
|
||||||
# pragma GCC diagnostic ignored "-Wcast-function-type"
|
# pragma GCC diagnostic ignored "-Wcast-function-type"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int lookup_functions()
|
static int lookup_functions(void)
|
||||||
{
|
{
|
||||||
hid_lib_handle = LoadLibraryW(L"hid.dll");
|
hid_lib_handle = LoadLibraryW(L"hid.dll");
|
||||||
if (hid_lib_handle == NULL) {
|
if (hid_lib_handle == NULL) {
|
||||||
|
@ -221,7 +221,7 @@ static BOOL IsWindowsVersionOrGreater(WORD wMajorVersion, WORD wMinorVersion, WO
|
||||||
return VerifyVersionInfoW(&osvi, VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR, dwlConditionMask) != FALSE;
|
return VerifyVersionInfoW(&osvi, VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR, dwlConditionMask) != FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static hid_device *new_hid_device()
|
static hid_device *new_hid_device(void)
|
||||||
{
|
{
|
||||||
hid_device *dev = (hid_device*) calloc(1, sizeof(hid_device));
|
hid_device *dev = (hid_device*) calloc(1, sizeof(hid_device));
|
||||||
|
|
||||||
|
|
|
@ -131,13 +131,13 @@ static int PS2_JoystickInit(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Function to return the number of joystick devices plugged in right now */
|
/* Function to return the number of joystick devices plugged in right now */
|
||||||
static int PS2_JoystickGetCount()
|
static int PS2_JoystickGetCount(void)
|
||||||
{
|
{
|
||||||
return (int)enabled_pads;
|
return (int)enabled_pads;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Function to cause any queued joystick insertions to be processed */
|
/* Function to cause any queued joystick insertions to be processed */
|
||||||
static void PS2_JoystickDetect()
|
static void PS2_JoystickDetect(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -134,12 +134,12 @@ static int VITA_JoystickInit(void)
|
||||||
return SDL_numjoysticks;
|
return SDL_numjoysticks;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int VITA_JoystickGetCount()
|
static int VITA_JoystickGetCount(void)
|
||||||
{
|
{
|
||||||
return SDL_numjoysticks;
|
return SDL_numjoysticks;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void VITA_JoystickDetect()
|
static void VITA_JoystickDetect(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -326,7 +326,7 @@ static struct
|
||||||
static SDL_bool xinput_device_change = SDL_TRUE;
|
static SDL_bool xinput_device_change = SDL_TRUE;
|
||||||
static SDL_bool xinput_state_dirty = SDL_TRUE;
|
static SDL_bool xinput_state_dirty = SDL_TRUE;
|
||||||
|
|
||||||
static void RAWINPUT_UpdateXInput()
|
static void RAWINPUT_UpdateXInput(void)
|
||||||
{
|
{
|
||||||
DWORD user_index;
|
DWORD user_index;
|
||||||
if (xinput_device_change) {
|
if (xinput_device_change) {
|
||||||
|
@ -366,7 +366,7 @@ static void RAWINPUT_MarkXInputSlotFree(Uint8 xinput_slot)
|
||||||
xinput_state[xinput_slot].used = SDL_FALSE;
|
xinput_state[xinput_slot].used = SDL_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static SDL_bool RAWINPUT_MissingXInputSlot()
|
static SDL_bool RAWINPUT_MissingXInputSlot(void)
|
||||||
{
|
{
|
||||||
int ii;
|
int ii;
|
||||||
for (ii = 0; ii < SDL_arraysize(xinput_state); ii++) {
|
for (ii = 0; ii < SDL_arraysize(xinput_state); ii++) {
|
||||||
|
@ -561,7 +561,7 @@ static void RAWINPUT_MarkWindowsGamingInputSlotFree(WindowsGamingInputGamepadSta
|
||||||
wgi_slot->correlated_context = NULL;
|
wgi_slot->correlated_context = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_bool RAWINPUT_MissingWindowsGamingInputSlot()
|
static SDL_bool RAWINPUT_MissingWindowsGamingInputSlot(void)
|
||||||
{
|
{
|
||||||
int ii;
|
int ii;
|
||||||
for (ii = 0; ii < wgi_state.per_gamepad_count; ii++) {
|
for (ii = 0; ii < wgi_state.per_gamepad_count; ii++) {
|
||||||
|
@ -572,7 +572,7 @@ static SDL_bool RAWINPUT_MissingWindowsGamingInputSlot()
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int RAWINPUT_UpdateWindowsGamingInput()
|
static int RAWINPUT_UpdateWindowsGamingInput(void)
|
||||||
{
|
{
|
||||||
int ii;
|
int ii;
|
||||||
if (!wgi_state.gamepad_statics) {
|
if (!wgi_state.gamepad_statics) {
|
||||||
|
@ -1054,7 +1054,7 @@ static int RAWINPUT_JoystickGetCount(void)
|
||||||
return SDL_RAWINPUT_numjoysticks;
|
return SDL_RAWINPUT_numjoysticks;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_bool RAWINPUT_IsEnabled()
|
SDL_bool RAWINPUT_IsEnabled(void)
|
||||||
{
|
{
|
||||||
return SDL_RAWINPUT_inited && !SDL_RAWINPUT_remote_desktop;
|
return SDL_RAWINPUT_inited && !SDL_RAWINPUT_remote_desktop;
|
||||||
}
|
}
|
||||||
|
@ -2102,7 +2102,7 @@ int RAWINPUT_RegisterNotifications(HWND hWnd)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int RAWINPUT_UnregisterNotifications()
|
int RAWINPUT_UnregisterNotifications(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
RAWINPUTDEVICE rid[SDL_arraysize(subscribed_devices)];
|
RAWINPUTDEVICE rid[SDL_arraysize(subscribed_devices)];
|
||||||
|
|
|
@ -213,7 +213,7 @@ static SDL_bool SDL_IsXInputDevice(Uint16 vendor, Uint16 product)
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void WGI_LoadRawGameControllerStatics()
|
static void WGI_LoadRawGameControllerStatics(void)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
HSTRING_HEADER class_name_header;
|
HSTRING_HEADER class_name_header;
|
||||||
|
@ -228,7 +228,7 @@ static void WGI_LoadRawGameControllerStatics()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void WGI_LoadOtherControllerStatics()
|
static void WGI_LoadOtherControllerStatics(void)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
HSTRING_HEADER class_name_header;
|
HSTRING_HEADER class_name_header;
|
||||||
|
|
|
@ -51,7 +51,7 @@ static void SDL_DispatchMainCallbackEvent(SDL_Event *event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SDL_DispatchMainCallbackEvents()
|
static void SDL_DispatchMainCallbackEvents(void)
|
||||||
{
|
{
|
||||||
SDL_Event events[16];
|
SDL_Event events[16];
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ static int SDLCALL SDL_MainCallbackEventWatcher(void *userdata, SDL_Event *event
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_bool SDL_HasMainCallbacks()
|
SDL_bool SDL_HasMainCallbacks(void)
|
||||||
{
|
{
|
||||||
if (SDL_main_iteration_callback) {
|
if (SDL_main_iteration_callback) {
|
||||||
return SDL_TRUE;
|
return SDL_TRUE;
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#include <sbv_patches.h>
|
#include <sbv_patches.h>
|
||||||
#include <ps2_filesystem_driver.h>
|
#include <ps2_filesystem_driver.h>
|
||||||
|
|
||||||
__attribute__((weak)) void reset_IOP()
|
__attribute__((weak)) void reset_IOP(void)
|
||||||
{
|
{
|
||||||
SifInitRpc(0);
|
SifInitRpc(0);
|
||||||
while (!SifIopReset(NULL, 0)) {
|
while (!SifIopReset(NULL, 0)) {
|
||||||
|
@ -45,7 +45,7 @@ __attribute__((weak)) void reset_IOP()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void prepare_IOP()
|
static void prepare_IOP(void)
|
||||||
{
|
{
|
||||||
reset_IOP();
|
reset_IOP();
|
||||||
SifInitRpc(0);
|
SifInitRpc(0);
|
||||||
|
@ -54,12 +54,12 @@ static void prepare_IOP()
|
||||||
sbv_patch_fileio();
|
sbv_patch_fileio();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void init_drivers()
|
static void init_drivers(void)
|
||||||
{
|
{
|
||||||
init_ps2_filesystem_driver();
|
init_ps2_filesystem_driver();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void deinit_drivers()
|
static void deinit_drivers(void)
|
||||||
{
|
{
|
||||||
deinit_ps2_filesystem_driver();
|
deinit_ps2_filesystem_driver();
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
/* Direct3D matrix math functions */
|
/* Direct3D matrix math functions */
|
||||||
|
|
||||||
Float4X4 MatrixIdentity()
|
Float4X4 MatrixIdentity(void)
|
||||||
{
|
{
|
||||||
Float4X4 m;
|
Float4X4 m;
|
||||||
SDL_zero(m);
|
SDL_zero(m);
|
||||||
|
|
|
@ -808,7 +808,7 @@ done:
|
||||||
|
|
||||||
#if defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_WINGDK)
|
#if defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_WINGDK)
|
||||||
|
|
||||||
static DXGI_MODE_ROTATION D3D11_GetCurrentRotation()
|
static DXGI_MODE_ROTATION D3D11_GetCurrentRotation(void)
|
||||||
{
|
{
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
return DXGI_MODE_ROTATION_IDENTITY;
|
return DXGI_MODE_ROTATION_IDENTITY;
|
||||||
|
|
|
@ -1200,7 +1200,7 @@ done:
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static DXGI_MODE_ROTATION D3D12_GetCurrentRotation()
|
static DXGI_MODE_ROTATION D3D12_GetCurrentRotation(void)
|
||||||
{
|
{
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
return DXGI_MODE_ROTATION_IDENTITY;
|
return DXGI_MODE_ROTATION_IDENTITY;
|
||||||
|
|
|
@ -60,7 +60,7 @@ typedef struct
|
||||||
static int vsync_sema_id = 0;
|
static int vsync_sema_id = 0;
|
||||||
|
|
||||||
/* PRIVATE METHODS */
|
/* PRIVATE METHODS */
|
||||||
static int vsync_handler()
|
static int vsync_handler(void)
|
||||||
{
|
{
|
||||||
iSignalSema(vsync_sema_id);
|
iSignalSema(vsync_sema_id);
|
||||||
|
|
||||||
|
|
|
@ -1639,7 +1639,7 @@ static SDL_bool VULKAN_InstanceExtensionFound(VULKAN_RenderData *rendererData, c
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_bool VULKAN_ValidationLayersFound()
|
static SDL_bool VULKAN_ValidationLayersFound(void)
|
||||||
{
|
{
|
||||||
uint32_t instanceLayerCount = 0;
|
uint32_t instanceLayerCount = 0;
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
|
|
@ -36,7 +36,7 @@ __declspec(selectany) int _fltused = 1;
|
||||||
#ifdef _M_IX86
|
#ifdef _M_IX86
|
||||||
|
|
||||||
/* Float to long */
|
/* Float to long */
|
||||||
void __declspec(naked) _ftol()
|
void __declspec(naked) _ftol(void)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -85,18 +85,18 @@ localexit:
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
}
|
}
|
||||||
|
|
||||||
void _ftol2_sse()
|
void _ftol2_sse(void)
|
||||||
{
|
{
|
||||||
_ftol();
|
_ftol();
|
||||||
}
|
}
|
||||||
|
|
||||||
void _ftol2()
|
void _ftol2(void)
|
||||||
{
|
{
|
||||||
_ftol();
|
_ftol();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 64-bit math operators for 32-bit systems */
|
/* 64-bit math operators for 32-bit systems */
|
||||||
void __declspec(naked) _allmul()
|
void __declspec(naked) _allmul(void)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -124,7 +124,7 @@ hard:
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
}
|
}
|
||||||
|
|
||||||
void __declspec(naked) _alldiv()
|
void __declspec(naked) _alldiv(void)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -210,7 +210,7 @@ L8:
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
}
|
}
|
||||||
|
|
||||||
void __declspec(naked) _aulldiv()
|
void __declspec(naked) _aulldiv(void)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -266,7 +266,7 @@ L2:
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
}
|
}
|
||||||
|
|
||||||
void __declspec(naked) _allrem()
|
void __declspec(naked) _allrem(void)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -351,7 +351,7 @@ L8:
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
}
|
}
|
||||||
|
|
||||||
void __declspec(naked) _aullrem()
|
void __declspec(naked) _aullrem(void)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -408,7 +408,7 @@ L2:
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
}
|
}
|
||||||
|
|
||||||
void __declspec(naked) _alldvrm()
|
void __declspec(naked) _alldvrm(void)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -516,7 +516,7 @@ L8:
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
}
|
}
|
||||||
|
|
||||||
void __declspec(naked) _aulldvrm()
|
void __declspec(naked) _aulldvrm(void)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -587,7 +587,7 @@ L2:
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
}
|
}
|
||||||
|
|
||||||
void __declspec(naked) _allshl()
|
void __declspec(naked) _allshl(void)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -612,7 +612,7 @@ RETZERO:
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
}
|
}
|
||||||
|
|
||||||
void __declspec(naked) _allshr()
|
void __declspec(naked) _allshr(void)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -637,7 +637,7 @@ RETSIGN:
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
}
|
}
|
||||||
|
|
||||||
void __declspec(naked) _aullshr()
|
void __declspec(naked) _aullshr(void)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
__asm {
|
__asm {
|
||||||
|
|
|
@ -323,7 +323,7 @@ dbghelp_failed:
|
||||||
SDLTest_TrackedFree);
|
SDLTest_TrackedFree);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDLTest_RandFillAllocations()
|
void SDLTest_RandFillAllocations(void)
|
||||||
{
|
{
|
||||||
SDLTest_TrackAllocations();
|
SDLTest_TrackAllocations();
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ static void SDL_CleanupWaitableTimer(void *timer)
|
||||||
CloseHandle(timer);
|
CloseHandle(timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
HANDLE SDL_GetWaitableTimer()
|
HANDLE SDL_GetWaitableTimer(void)
|
||||||
{
|
{
|
||||||
static SDL_TLSID TLS_timer_handle;
|
static SDL_TLSID TLS_timer_handle;
|
||||||
HANDLE timer;
|
HANDLE timer;
|
||||||
|
|
|
@ -694,7 +694,7 @@ SDL_SystemTheme SDL_GetSystemTheme(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SDL_UpdateDesktopBounds()
|
static void SDL_UpdateDesktopBounds(void)
|
||||||
{
|
{
|
||||||
SDL_Rect rect;
|
SDL_Rect rect;
|
||||||
SDL_zero(rect);
|
SDL_zero(rect);
|
||||||
|
|
|
@ -74,7 +74,7 @@ static SDL_Cursor *Android_WrapCursor(int custom_cursor, int system_cursor)
|
||||||
return cursor;
|
return cursor;
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_Cursor *Android_CreateDefaultCursor()
|
static SDL_Cursor *Android_CreateDefaultCursor(void)
|
||||||
{
|
{
|
||||||
return Android_WrapCursor(0, SDL_SYSTEM_CURSOR_DEFAULT);
|
return Android_WrapCursor(0, SDL_SYSTEM_CURSOR_DEFAULT);
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ static void Android_FreeCursor(SDL_Cursor *cursor)
|
||||||
SDL_free(cursor);
|
SDL_free(cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_Cursor *Android_CreateEmptyCursor()
|
static SDL_Cursor *Android_CreateEmptyCursor(void)
|
||||||
{
|
{
|
||||||
if (!empty_cursor) {
|
if (!empty_cursor) {
|
||||||
SDL_Surface *empty_surface = SDL_CreateSurface(1, 1, SDL_PIXELFORMAT_ARGB8888);
|
SDL_Surface *empty_surface = SDL_CreateSurface(1, 1, SDL_PIXELFORMAT_ARGB8888);
|
||||||
|
@ -125,7 +125,7 @@ static SDL_Cursor *Android_CreateEmptyCursor()
|
||||||
return empty_cursor;
|
return empty_cursor;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Android_DestroyEmptyCursor()
|
static void Android_DestroyEmptyCursor(void)
|
||||||
{
|
{
|
||||||
if (empty_cursor) {
|
if (empty_cursor) {
|
||||||
Android_FreeCursor(empty_cursor);
|
Android_FreeCursor(empty_cursor);
|
||||||
|
|
|
@ -60,7 +60,7 @@ static SDL_Cursor *Emscripten_CreateCursorFromString(const char *cursor_str, SDL
|
||||||
return cursor;
|
return cursor;
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_Cursor *Emscripten_CreateDefaultCursor()
|
static SDL_Cursor *Emscripten_CreateDefaultCursor(void)
|
||||||
{
|
{
|
||||||
return Emscripten_CreateCursorFromString("default", SDL_FALSE);
|
return Emscripten_CreateCursorFromString("default", SDL_FALSE);
|
||||||
}
|
}
|
||||||
|
@ -194,7 +194,7 @@ static int Emscripten_SetRelativeMouseMode(SDL_bool enabled)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Emscripten_InitMouse()
|
void Emscripten_InitMouse(void)
|
||||||
{
|
{
|
||||||
SDL_Mouse *mouse = SDL_GetMouse();
|
SDL_Mouse *mouse = SDL_GetMouse();
|
||||||
|
|
||||||
|
@ -207,7 +207,7 @@ void Emscripten_InitMouse()
|
||||||
SDL_SetDefaultCursor(Emscripten_CreateDefaultCursor());
|
SDL_SetDefaultCursor(Emscripten_CreateDefaultCursor());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Emscripten_FiniMouse()
|
void Emscripten_FiniMouse(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,17 +30,17 @@
|
||||||
static SwkbdState sw_keyboard;
|
static SwkbdState sw_keyboard;
|
||||||
const static size_t BUFFER_SIZE = 256;
|
const static size_t BUFFER_SIZE = 256;
|
||||||
|
|
||||||
void N3DS_SwkbInit()
|
void N3DS_SwkbInit(void)
|
||||||
{
|
{
|
||||||
swkbdInit(&sw_keyboard, SWKBD_TYPE_NORMAL, 2, -1);
|
swkbdInit(&sw_keyboard, SWKBD_TYPE_NORMAL, 2, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void N3DS_SwkbPoll()
|
void N3DS_SwkbPoll(void)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void N3DS_SwkbQuit()
|
void N3DS_SwkbQuit(void)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ static void PSP_Destroy(SDL_VideoDevice *device)
|
||||||
SDL_free(device);
|
SDL_free(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_VideoDevice *PSP_Create()
|
static SDL_VideoDevice *PSP_Create(void)
|
||||||
{
|
{
|
||||||
SDL_VideoDevice *device;
|
SDL_VideoDevice *device;
|
||||||
SDL_VideoData *phdata;
|
SDL_VideoData *phdata;
|
||||||
|
|
|
@ -309,7 +309,7 @@ static void deleteDevice(SDL_VideoDevice *device)
|
||||||
* Creates the QNX video plugin used by SDL.
|
* Creates the QNX video plugin used by SDL.
|
||||||
* @return Initialized device if successful, NULL otherwise
|
* @return Initialized device if successful, NULL otherwise
|
||||||
*/
|
*/
|
||||||
static SDL_VideoDevice *createDevice()
|
static SDL_VideoDevice *createDevice(void)
|
||||||
{
|
{
|
||||||
SDL_VideoDevice *device;
|
SDL_VideoDevice *device;
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ static void RPI_GetRefreshRate(int *numerator, int *denominator)
|
||||||
*denominator = 1;
|
*denominator = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_VideoDevice *RPI_Create()
|
static SDL_VideoDevice *RPI_Create(void)
|
||||||
{
|
{
|
||||||
SDL_VideoDevice *device;
|
SDL_VideoDevice *device;
|
||||||
SDL_VideoData *phdata;
|
SDL_VideoData *phdata;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
|
|
||||||
static SDL_Cursor *RISCOS_CreateDefaultCursor()
|
static SDL_Cursor *RISCOS_CreateDefaultCursor(void)
|
||||||
{
|
{
|
||||||
SDL_Cursor *cursor = SDL_calloc(1, sizeof(*cursor));
|
SDL_Cursor *cursor = SDL_calloc(1, sizeof(*cursor));
|
||||||
if (cursor) {
|
if (cursor) {
|
||||||
|
|
|
@ -59,7 +59,7 @@ static void VITA_Destroy(SDL_VideoDevice *device)
|
||||||
SDL_free(device);
|
SDL_free(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_VideoDevice *VITA_Create()
|
static SDL_VideoDevice *VITA_Create(void)
|
||||||
{
|
{
|
||||||
SDL_VideoDevice *device;
|
SDL_VideoDevice *device;
|
||||||
SDL_VideoData *phdata;
|
SDL_VideoData *phdata;
|
||||||
|
|
|
@ -41,7 +41,7 @@ static void VIVANTE_Destroy(SDL_VideoDevice *device)
|
||||||
SDL_free(device);
|
SDL_free(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_VideoDevice *VIVANTE_Create()
|
static SDL_VideoDevice *VIVANTE_Create(void)
|
||||||
{
|
{
|
||||||
SDL_VideoDevice *device;
|
SDL_VideoDevice *device;
|
||||||
SDL_VideoData *data;
|
SDL_VideoData *data;
|
||||||
|
|
|
@ -272,7 +272,7 @@ static void Wayland_DBusInitCursorProperties(SDL_VideoData *vdata)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Wayland_DBusFinishCursorProperties()
|
static void Wayland_DBusFinishCursorProperties(void)
|
||||||
{
|
{
|
||||||
SDL_free(dbus_cursor_theme);
|
SDL_free(dbus_cursor_theme);
|
||||||
dbus_cursor_theme = NULL;
|
dbus_cursor_theme = NULL;
|
||||||
|
|
|
@ -89,7 +89,7 @@ enum WaylandModeScale
|
||||||
WAYLAND_MODE_SCALE_NONE
|
WAYLAND_MODE_SCALE_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
static enum WaylandModeScale GetModeScaleMethod()
|
static enum WaylandModeScale GetModeScaleMethod(void)
|
||||||
{
|
{
|
||||||
static enum WaylandModeScale scale_mode = WAYLAND_MODE_SCALE_UNDEFINED;
|
static enum WaylandModeScale scale_mode = WAYLAND_MODE_SCALE_UNDEFINED;
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,7 @@ static void WIN_SetMessageTick(DWORD tick)
|
||||||
message_tick = tick;
|
message_tick = tick;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Uint64 WIN_GetEventTimestamp()
|
static Uint64 WIN_GetEventTimestamp(void)
|
||||||
{
|
{
|
||||||
Uint64 timestamp, now;
|
Uint64 timestamp, now;
|
||||||
|
|
||||||
|
@ -2090,7 +2090,7 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||||
static void WIN_UpdateClipCursorForWindows()
|
static void WIN_UpdateClipCursorForWindows(void)
|
||||||
{
|
{
|
||||||
SDL_VideoDevice *_this = SDL_GetVideoDevice();
|
SDL_VideoDevice *_this = SDL_GetVideoDevice();
|
||||||
SDL_Window *window;
|
SDL_Window *window;
|
||||||
|
@ -2112,7 +2112,7 @@ static void WIN_UpdateClipCursorForWindows()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void WIN_UpdateMouseCapture()
|
static void WIN_UpdateMouseCapture(void)
|
||||||
{
|
{
|
||||||
SDL_Window *focusWindow = SDL_GetKeyboardFocus();
|
SDL_Window *focusWindow = SDL_GetKeyboardFocus();
|
||||||
|
|
||||||
|
@ -2408,7 +2408,7 @@ int SDL_RegisterApp(const char *name, Uint32 style, void *hInst)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Unregisters the windowclass registered in SDL_RegisterApp above. */
|
/* Unregisters the windowclass registered in SDL_RegisterApp above. */
|
||||||
void SDL_UnregisterApp()
|
void SDL_UnregisterApp(void)
|
||||||
{
|
{
|
||||||
WNDCLASSEX wcex;
|
WNDCLASSEX wcex;
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@ void WIN_QuitKeyboard(SDL_VideoDevice *_this)
|
||||||
#endif /* !SDL_DISABLE_WINDOWS_IME */
|
#endif /* !SDL_DISABLE_WINDOWS_IME */
|
||||||
}
|
}
|
||||||
|
|
||||||
void WIN_ResetDeadKeys()
|
void WIN_ResetDeadKeys(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
if a deadkey has been typed, but not the next character (which the deadkey might modify),
|
if a deadkey has been typed, but not the next character (which the deadkey might modify),
|
||||||
|
|
|
@ -34,7 +34,7 @@ DWORD SDL_last_warp_time = 0;
|
||||||
HCURSOR SDL_cursor = NULL;
|
HCURSOR SDL_cursor = NULL;
|
||||||
static SDL_Cursor *SDL_blank_cursor = NULL;
|
static SDL_Cursor *SDL_blank_cursor = NULL;
|
||||||
|
|
||||||
static SDL_Cursor *WIN_CreateDefaultCursor()
|
static SDL_Cursor *WIN_CreateDefaultCursor(void)
|
||||||
{
|
{
|
||||||
SDL_Cursor *cursor = (SDL_Cursor *)SDL_calloc(1, sizeof(*cursor));
|
SDL_Cursor *cursor = (SDL_Cursor *)SDL_calloc(1, sizeof(*cursor));
|
||||||
if (cursor) {
|
if (cursor) {
|
||||||
|
@ -195,7 +195,7 @@ static SDL_Cursor *WIN_CreateCursor(SDL_Surface *surface, int hot_x, int hot_y)
|
||||||
return cursor;
|
return cursor;
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_Cursor *WIN_CreateBlankCursor()
|
static SDL_Cursor *WIN_CreateBlankCursor(void)
|
||||||
{
|
{
|
||||||
SDL_Cursor *cursor = NULL;
|
SDL_Cursor *cursor = NULL;
|
||||||
SDL_Surface *surface = SDL_CreateSurface(32, 32, SDL_PIXELFORMAT_ARGB8888);
|
SDL_Surface *surface = SDL_CreateSurface(32, 32, SDL_PIXELFORMAT_ARGB8888);
|
||||||
|
@ -522,7 +522,7 @@ static void WIN_SetLinearMouseScale(int mouse_speed)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void WIN_UpdateMouseSystemScale()
|
void WIN_UpdateMouseSystemScale(void)
|
||||||
{
|
{
|
||||||
int mouse_speed;
|
int mouse_speed;
|
||||||
int params[3] = { 0, 0, 0 };
|
int params[3] = { 0, 0, 0 };
|
||||||
|
|
|
@ -352,7 +352,7 @@ static void SDLCALL WIN_MouseRelativeModeCenterChanged(void *userdata, const cha
|
||||||
data->mouse_relative_mode_center = SDL_GetStringBoolean(hint, SDL_TRUE);
|
data->mouse_relative_mode_center = SDL_GetStringBoolean(hint, SDL_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_WindowEraseBackgroundMode GetEraseBackgroundModeHint()
|
static SDL_WindowEraseBackgroundMode GetEraseBackgroundModeHint(void)
|
||||||
{
|
{
|
||||||
const char *hint = SDL_GetHint(SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE);
|
const char *hint = SDL_GetHint(SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE);
|
||||||
if (!hint)
|
if (!hint)
|
||||||
|
|
|
@ -79,7 +79,7 @@ int X11_XfixesIsInitialized(void)
|
||||||
return xfixes_initialized;
|
return xfixes_initialized;
|
||||||
}
|
}
|
||||||
|
|
||||||
int X11_GetXFixesSelectionNotifyEvent()
|
int X11_GetXFixesSelectionNotifyEvent(void)
|
||||||
{
|
{
|
||||||
return xfixes_selection_notify_event;
|
return xfixes_selection_notify_event;
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@ static void draw_textf(SDL_Renderer* renderer, int x, int y, const char* fmt, ..
|
||||||
draw_text(renderer, x, y, text);
|
draw_text(renderer, x, y, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void queue_audio()
|
static void queue_audio(void)
|
||||||
{
|
{
|
||||||
Uint8* new_data = NULL;
|
Uint8* new_data = NULL;
|
||||||
int new_len = 0;
|
int new_len = 0;
|
||||||
|
|
|
@ -21,7 +21,7 @@ static void EnableTestLog(int *message_count)
|
||||||
SDL_SetLogOutputFunction(TestLogOutput, message_count);
|
SDL_SetLogOutputFunction(TestLogOutput, message_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void DisableTestLog()
|
static void DisableTestLog(void)
|
||||||
{
|
{
|
||||||
SDL_SetLogOutputFunction(original_function, original_userdata);
|
SDL_SetLogOutputFunction(original_function, original_userdata);
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ quit(int rc)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Render()
|
Render(void)
|
||||||
{
|
{
|
||||||
static GLubyte color[8][4] = { { 255, 0, 0, 0 },
|
static GLubyte color[8][4] = { { 255, 0, 0, 0 },
|
||||||
{ 255, 0, 0, 255 },
|
{ 255, 0, 0, 255 },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue