Ryujinx-SDL/src
Simon McVittie 412ceb84d4 video: Only check major version in SDL_GetWindowWMInfo
Since #5602, SDL is intended to have the same ABI across the whole
major-version 2 cycle, so we should not check that the minor version
matches the one that was used to compile an application.

There are two checks that could make sense here.

The first check is that the major version matches the expected major
version. This is usually unnecessary and is not usually done (if we're
calling into the wrong library we'll likely crash anyway), but since we
have the information, we might as well continue to use it.

The second check is whether the version provided by the caller is
equal to or greater than a threshold version at which additional fields
were added to the struct. If it is, we should populate those fields;
if it is not, then we cannot. This is only useful on platforms where
additional fields have genuinely been added during the lifetime of
SDL 2, like Windows and DirectFB (but not X11).

This commit changes the first check to be consistent about only looking
at the minor version, while leaving the second check using SDL_VERSIONNUM
(which will be removed or widened in SDL 3, but it's fine for now).

Resolves: https://github.com/libsdl-org/SDL/issues/5711
Fixes: cd7c2f1 "Switch versioning scheme to be the same as GLib and Flatpak"
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-05-24 08:56:23 -07:00
..
atomic move bug #5333 fix to headers 2022-02-08 21:32:50 +03:00
audio audio: Fix locking in backends that manage their own callback threads. 2022-05-20 21:08:29 -04:00
core Initial support for building for Windows with OpenWatcom 2022-05-19 20:11:10 +03:00
cpuinfo Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
dynapi Fix enabling SDL_DYNAMIC_API in OpenWatcom builds 2022-05-19 20:11:10 +03:00
events Make sure SDL_CaptureMouse() is only called on the main thread 2022-05-19 09:52:47 -07:00
file Vita: remove Vita-specific RWOps code 2022-05-18 08:29:25 -07:00
filesystem Fixed whitespace 2022-05-18 06:58:14 -07:00
haptic re-use return value of SDL_SetError/WIN_SetErrorFromHRESULT/SDL_OutOfMemory 2022-01-28 20:40:19 -05:00
hidapi Avoid clashing with system headers when redefining standard library functions 2022-05-18 16:44:17 -04:00
joystick Fixed HIDAPI PS4 controller being picked up when running under Steam 2022-05-19 16:50:59 -07:00
libm Add SDL_FLOATWORDORDER for older ARM toolchains 2022-05-04 09:52:11 -07:00
loadso use SDL_InvalidParamError or SDL_assert instead of custom SDL_SetError 2022-01-28 20:40:19 -05:00
locale Vita: add SDL_GetPreferredLocales support 2022-03-29 15:02:21 -07:00
main N-Gage port: add changes from code reviews, overall cleanup (#5618) 2022-05-11 09:31:34 -07:00
misc minor update to winrt/SDL_sysurl.cpp 2022-02-04 20:03:50 +03:00
power Don't fail to get battery status if the upower refresh call fails 2022-02-04 14:02:44 -08:00
render Initial support for building for Windows with OpenWatcom 2022-05-19 20:11:10 +03:00
sensor Removed problematic call to ISensor_SetEventSink() 2022-03-17 10:01:13 -07:00
stdlib Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
test Use SDLCALL for callbacks in public APIs 2022-05-18 15:01:27 -07:00
thread N-Gage port: add changes from code reviews, overall cleanup (#5618) 2022-05-11 09:31:34 -07:00
timer Add support for the Nokia N-Gage (#5597) 2022-05-03 08:51:49 -07:00
video video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
SDL_assert_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_assert.c Fixed warning building with Visual Studio 2022-05-15 09:33:28 -07:00
SDL_dataqueue.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dataqueue.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_error_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_error.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_hints_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_hints.c Fix potential memory leak in SDL_AddHintCallback 2022-05-21 09:47:34 -07:00
SDL_internal.h Fix enabling SDL_DYNAMIC_API in OpenWatcom builds 2022-05-19 20:11:10 +03:00
SDL_list.c Add SDL_list.c/h 2022-04-01 08:01:44 +02:00
SDL_list.h Add SDL_list.c/h 2022-04-01 08:01:44 +02:00
SDL_log_c.h Added declaration of SDL_LogInit() and SDL_LogQuit() 2022-04-28 15:01:34 -07:00
SDL_log.c log: Check for integer overflow. 2022-05-10 06:47:11 -07:00
SDL.c build: Mechanically generate ABI versions from version number 2022-05-04 09:55:35 -07:00