SDL/src/video/vita
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
..
SDL_vitaframebuffer.c Fix recent changes in VitaSDK 2022-04-19 14:17:27 -07:00
SDL_vitaframebuffer.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_vitagl_pvr.c Vita: PVROGL: fix indentation and ifdef guards 2022-03-31 06:02:50 -07:00
SDL_vitagl_pvr_c.h Desktop OpenGL 1.X/2.X PSVita Support 2022-03-31 00:02:56 -04:00
SDL_vitagles.c Desktop OpenGL 1.X/2.X PSVita Support 2022-03-31 00:02:56 -04:00
SDL_vitagles_c.h Desktop OpenGL 1.X/2.X PSVita Support 2022-03-31 00:02:56 -04:00
SDL_vitagles_pvr.c Desktop OpenGL 1.X/2.X PSVita Support 2022-03-31 00:02:56 -04:00
SDL_vitagles_pvr_c.h Desktop OpenGL 1.X/2.X PSVita Support 2022-03-31 00:02:56 -04:00
SDL_vitakeyboard.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_vitakeyboard.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_vitamessagebox.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_vitamessagebox.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_vitamouse.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_vitamouse_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_vitatouch.c Fix touch holding detection after #5244 changes 2022-02-02 08:55:26 -08:00
SDL_vitatouch.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_vitavideo.c video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
SDL_vitavideo.h Desktop OpenGL 1.X/2.X PSVita Support 2022-03-31 00:02:56 -04:00