Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package sdl2-compat for openSUSE:Factory checked in at 2026-10-05 12:54:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sdl2-compat (Old) and /work/SRC/openSUSE:Factory/.sdl2-compat.new.3698736 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sdl2-compat" Mon Oct 5 12:54:38 2026 rev:13 rq:1382239 version:2.32.74 Changes: -------- --- /work/SRC/openSUSE:Factory/sdl2-compat/sdl2-compat.changes 2026-09-04 12:37:44.832972383 +0200 +++ /work/SRC/openSUSE:Factory/.sdl2-compat.new.3698736/sdl2-compat.changes 2026-10-05 12:54:50.438768082 +0200 @@ -1,0 +2,6 @@ +Sat Oct 3 10:52:11 UTC 2026 - Jan Engelhardt <[email protected]> + +- Update to release 2.32.74 + * Fixed mouse coordinates in the Mana client + +------------------------------------------------------------------- Old: ---- sdl2-compat-2.32.72.tar.gz sdl2-compat-2.32.72.tar.gz.sig New: ---- sdl2-compat-2.32.74.tar.gz sdl2-compat-2.32.74.tar.gz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sdl2-compat.spec ++++++ --- /var/tmp/diff_new_pack.CqkaLr/_old 2026-10-05 12:54:51.238802381 +0200 +++ /var/tmp/diff_new_pack.CqkaLr/_new 2026-10-05 12:54:51.239802424 +0200 @@ -19,7 +19,7 @@ %define lname libSDL2-2_0-0 %global _lto_cflags %_lto_cflags -ffat-lto-objects Name: sdl2-compat -Version: 2.32.72 +Version: 2.32.74 Release: 0 Summary: SDL-2.0 Compatibility Layer for Simple DirectMedia Layer 3.0 License: Zlib ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.CqkaLr/_old 2026-10-05 12:54:51.278804096 +0200 +++ /var/tmp/diff_new_pack.CqkaLr/_new 2026-10-05 12:54:51.281804224 +0200 @@ -1,5 +1,5 @@ -mtime: 1788422702 -commit: 22abfb00574e82c881ff9f15de1a20a2a7cf9cee577ec2fd52b3414f82eb5ae9 +mtime: 1791024753 +commit: 0301f81f943de237ed0f370de418e3490d6372826cc31f11b0334fb34b0aa8b2 url: https://src.opensuse.org/jengelh/sdl2-compat revision: master ++++++ sdl2-compat-2.32.72.tar.gz -> sdl2-compat-2.32.74.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/.git-hash new/sdl2-compat-2.32.74/.git-hash --- old/sdl2-compat-2.32.72/.git-hash 2026-09-02 18:25:35.000000000 +0200 +++ new/sdl2-compat-2.32.74/.git-hash 2026-10-03 00:48:04.000000000 +0200 @@ -1 +1 @@ -50b45c4417f6c9cab3168a74df59ff1e8c4125ae +e4df8a55f20da762290a78c2bbe8f8d89d01486a diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/AGENTS.md new/sdl2-compat-2.32.74/AGENTS.md --- old/sdl2-compat-2.32.72/AGENTS.md 1970-01-01 01:00:00.000000000 +0100 +++ new/sdl2-compat-2.32.74/AGENTS.md 2026-09-03 18:54:02.000000000 +0200 @@ -0,0 +1,11 @@ +Generative AI, including large language models (LLMs), should not be used in +any way when contributing to SDL. + +We want our code to be art. We want to interact with real humans. Please don't +submit AI-generated comments or code in bug reports or pull requests. We +understand some people consider AI to be a useful tool, but we want to connect +with you, not your computer. + +Any pull request to this project will ask you to confirm that you are the +author and that you are contributing your changes under the zlib license. + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/CLAUDE.md new/sdl2-compat-2.32.74/CLAUDE.md --- old/sdl2-compat-2.32.72/CLAUDE.md 1970-01-01 01:00:00.000000000 +0100 +++ new/sdl2-compat-2.32.74/CLAUDE.md 2026-09-03 18:54:02.000000000 +0200 @@ -0,0 +1,11 @@ +Generative AI, including large language models (LLMs), should not be used in +any way when contributing to SDL. + +We want our code to be art. We want to interact with real humans. Please don't +submit AI-generated comments or code in bug reports or pull requests. We +understand some people consider AI to be a useful tool, but we want to connect +with you, not your computer. + +Any pull request to this project will ask you to confirm that you are the +author and that you are contributing your changes under the zlib license. + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/CMakeLists.txt new/sdl2-compat-2.32.74/CMakeLists.txt --- old/sdl2-compat-2.32.72/CMakeLists.txt 2026-09-02 18:25:35.000000000 +0200 +++ new/sdl2-compat-2.32.74/CMakeLists.txt 2026-10-03 00:48:04.000000000 +0200 @@ -3,7 +3,7 @@ # cmake -DSDL3_INCLUDE_DIRS=/opt/SDL3/include [other stuff ....] cmake_minimum_required(VERSION 3.0...4.1) -project(sdl2_compat VERSION 2.32.72 LANGUAGES C) +project(sdl2_compat VERSION 2.32.74 LANGUAGES C) if(POLICY CMP0074) # CMP0074: find_package() uses <PackageName>_ROOT variables. @@ -93,8 +93,8 @@ set(SDL2COMPAT_FRAMEWORK FALSE) #FIXME: should SDL2-compat modify vendor_info/revision information? -if(SDL2COMPAT_STATIC AND NOT (CMAKE_SYSTEM_NAME MATCHES "Linux")) - message(FATAL_ERROR "Static builds are only supported on Linux.") +if(SDL2COMPAT_STATIC AND NOT (CMAKE_SYSTEM_NAME MATCHES "Linux|QNX")) + message(FATAL_ERROR "Static builds are only supported on Linux or QNX.") endif() macro(check_add_debug_flag FLAG SUFFIX) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/REVISION.txt new/sdl2-compat-2.32.74/REVISION.txt --- old/sdl2-compat-2.32.72/REVISION.txt 2026-09-02 18:25:35.000000000 +0200 +++ new/sdl2-compat-2.32.74/REVISION.txt 2026-10-03 00:48:04.000000000 +0200 @@ -1 +1 @@ -release-2.32.72-0-g50b45c4 +release-2.32.74-0-ge4df8a5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/include/SDL2/SDL_config.h.cmake new/sdl2-compat-2.32.74/include/SDL2/SDL_config.h.cmake --- old/sdl2-compat-2.32.72/include/SDL2/SDL_config.h.cmake 2026-05-25 17:40:10.000000000 +0200 +++ new/sdl2-compat-2.32.74/include/SDL2/SDL_config.h.cmake 2026-09-30 22:55:02.000000000 +0200 @@ -166,6 +166,7 @@ #cmakedefine HAVE_FLOORF 1 #cmakedefine HAVE_FMOD 1 #cmakedefine HAVE_FMODF 1 +#cmakedefine HAVE_GETEXECPATH 1 #cmakedefine HAVE_LOG 1 #cmakedefine HAVE_LOGF 1 #cmakedefine HAVE_LOG10 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/include/SDL2/SDL_config.h.in new/sdl2-compat-2.32.74/include/SDL2/SDL_config.h.in --- old/sdl2-compat-2.32.72/include/SDL2/SDL_config.h.in 2026-05-25 17:40:10.000000000 +0200 +++ new/sdl2-compat-2.32.74/include/SDL2/SDL_config.h.in 2026-09-30 22:55:02.000000000 +0200 @@ -214,6 +214,7 @@ #undef HAVE_MEMFD_CREATE #undef HAVE_POSIX_FALLOCATE #undef HAVE__EXIT +#undef HAVE_GETEXECPATH #else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/include/SDL2/SDL_config_unix.h.cmake new/sdl2-compat-2.32.74/include/SDL2/SDL_config_unix.h.cmake --- old/sdl2-compat-2.32.72/include/SDL2/SDL_config_unix.h.cmake 2026-02-24 15:55:28.000000000 +0100 +++ new/sdl2-compat-2.32.74/include/SDL2/SDL_config_unix.h.cmake 2026-09-24 20:05:56.000000000 +0200 @@ -270,4 +270,17 @@ #define SDL_VIDEO_VULKAN 1 #endif +/* Enable QNX desktop environment */ +#if defined(__QNX__) +#define SDL_VIDEO_DRIVER_WAYLAND 1 +#define SDL_VIDEO_DRIVER_QNX 1 +#endif + +/* Enable QNX audio */ +#if defined(__QNX__) && (__QNX__ >= 800) +#define SDL_AUDIO_DRIVER_ALSA 1 +#elif defined(__QNX__) +#define SDL_AUDIO_DRIVER_QNX 1 +#endif + #endif /* SDL_config_unix_h_ */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/include/SDL2/SDL_render.h new/sdl2-compat-2.32.74/include/SDL2/SDL_render.h --- old/sdl2-compat-2.32.72/include/SDL2/SDL_render.h 2026-01-01 19:03:02.000000000 +0100 +++ new/sdl2-compat-2.32.74/include/SDL2/SDL_render.h 2026-09-30 22:55:02.000000000 +0200 @@ -664,11 +664,20 @@ * As an optimization, the pixels made available for editing don't necessarily * contain the old texture data. This is a write-only operation, and if you * need to keep a copy of the texture data you should do that at the - * application level. + * application level. If the existing texture contents happen to be in the + * locked buffer, it is purely coincidental. * * You must use SDL_UnlockTexture() to unlock the pixels and apply any * changes. * + * Every pixel must be initialized by the caller, or uninitialized data will + * be uploaded to the texture during unlock. + * + * `pitch` may be larger than the bytes needed for a row of pixels, as there + * might be padding included. Use `(y * pitch) + (x * pixel_size_in_bytes)` to + * write to the first byte of the pixel at `(x, y)` in the locked texture + * area, where `(0, 0)` is the top-left corner of the area. + * * \param texture the texture to lock for access, which was created with * `SDL_TEXTUREACCESS_STREAMING`. * \param rect an SDL_Rect structure representing the area to lock for access; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/include/SDL2/SDL_revision.h new/sdl2-compat-2.32.74/include/SDL2/SDL_revision.h --- old/sdl2-compat-2.32.72/include/SDL2/SDL_revision.h 2026-09-02 18:25:35.000000000 +0200 +++ new/sdl2-compat-2.32.74/include/SDL2/SDL_revision.h 2026-10-03 00:48:04.000000000 +0200 @@ -1,6 +1,6 @@ #ifdef SDL_VENDOR_INFO -#define SDL_REVISION "release-2.32.72-0-g50b45c4 (" SDL_VENDOR_INFO ")" +#define SDL_REVISION "release-2.32.74-0-ge4df8a5 (" SDL_VENDOR_INFO ")" #else -#define SDL_REVISION "release-2.32.72-0-g50b45c4" +#define SDL_REVISION "release-2.32.74-0-ge4df8a5" #endif #define SDL_REVISION_NUMBER 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/include/SDL2/SDL_version.h new/sdl2-compat-2.32.74/include/SDL2/SDL_version.h --- old/sdl2-compat-2.32.72/include/SDL2/SDL_version.h 2026-09-02 18:25:35.000000000 +0200 +++ new/sdl2-compat-2.32.74/include/SDL2/SDL_version.h 2026-10-03 00:48:04.000000000 +0200 @@ -58,7 +58,7 @@ */ #define SDL_MAJOR_VERSION 2 #define SDL_MINOR_VERSION 32 -#define SDL_PATCHLEVEL 72 +#define SDL_PATCHLEVEL 74 /** * Macro to determine SDL version program was compiled against. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/src/Makefile.darwin new/sdl2-compat-2.32.74/src/Makefile.darwin --- old/sdl2-compat-2.32.72/src/Makefile.darwin 2026-09-02 18:25:35.000000000 +0200 +++ new/sdl2-compat-2.32.74/src/Makefile.darwin 2026-10-03 00:48:04.000000000 +0200 @@ -20,7 +20,7 @@ LDFLAGS = -dynamiclib -Wl,-undefined,error -Wl,-single_module #LDFLAGS+= -Wl,-headerpad_max_install_names LDFLAGS+= -Wl,-install_name,"/usr/local/lib/$(DYLIB)" -LDFLAGS+= -Wl,-compatibility_version,3201.0 -Wl,-current_version,3201.72 +LDFLAGS+= -Wl,-compatibility_version,3201.0 -Wl,-current_version,3201.74 LDLIBS = -Wl,-framework,AppKit # this is needed for x86_64 - cross-gcc might not add it. #LDLIBS += -Wl,-lbundle1.o diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/src/Makefile.linux new/sdl2-compat-2.32.74/src/Makefile.linux --- old/sdl2-compat-2.32.72/src/Makefile.linux 2026-09-02 18:25:35.000000000 +0200 +++ new/sdl2-compat-2.32.74/src/Makefile.linux 2026-10-03 00:48:04.000000000 +0200 @@ -13,7 +13,7 @@ LDFLAGS+= -Wl,--no-undefined LDLIBS = -ldl -SHLIB = libSDL2-2.0.so.0.3200.72 +SHLIB = libSDL2-2.0.so.0.3200.74 OBJ = sdl2_compat.o dynapi/SDL_dynapi.o diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/src/dynapi/SDL_dynapi.c new/sdl2-compat-2.32.74/src/dynapi/SDL_dynapi.c --- old/sdl2-compat-2.32.72/src/dynapi/SDL_dynapi.c 2026-01-01 19:03:02.000000000 +0100 +++ new/sdl2-compat-2.32.74/src/dynapi/SDL_dynapi.c 2026-09-24 20:05:56.000000000 +0200 @@ -379,7 +379,7 @@ return retval; } -#elif defined(unix) || defined(__unix__) || defined(__APPLE__) || defined(SDL_PLATFORM_HAIKU) || defined(SDL_PLATFORM_QNX) +#elif defined(unix) || defined(__unix__) || defined(__APPLE__) || defined(SDL_PLATFORM_HAIKU) || defined(SDL_PLATFORM_QNXNTO) #include <stdio.h> #include <stdlib.h> #include <dlfcn.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/src/sdl2_compat.c new/sdl2-compat-2.32.74/src/sdl2_compat.c --- old/sdl2-compat-2.32.72/src/sdl2_compat.c 2026-09-02 18:25:35.000000000 +0200 +++ new/sdl2-compat-2.32.74/src/sdl2_compat.c 2026-10-03 00:48:04.000000000 +0200 @@ -58,7 +58,7 @@ * The number might increment past 90 if there are a ton of releases. */ #define SDL2_COMPAT_VERSION_MINOR 32 -#define SDL2_COMPAT_VERSION_PATCH 72 +#define SDL2_COMPAT_VERSION_PATCH 74 #ifndef SDL2COMPAT_REVISION #define SDL2COMPAT_REVISION "SDL-2." STRINGIFY(SDL2_COMPAT_VERSION_MINOR) "." STRINGIFY(SDL2_COMPAT_VERSION_PATCH) "-no-vcs" @@ -100,6 +100,10 @@ #include <unistd.h> /* for readlink() */ #endif +#ifdef SDL_PLATFORM_QNXNTO +#include <sys/process.h> /* for getprogname() */ +#endif + #if defined(SDL_PLATFORM_UNIX) || defined(__APPLE__) #ifndef PATH_MAX #define PATH_MAX 1024 @@ -217,6 +221,7 @@ #define PROP_RENDERER_BATCHING "sdl2-compat.renderer.batching" #define PROP_RENDERER_RELATIVE_SCALING "sdl2-compat.renderer.relative-scaling" #define PROP_RENDERER_INTEGER_SCALE "sdl2-compat.renderer.integer_scale" +#define PROP_RENDERER_MAIN_VIEW_LOGICAL_PRESENTATION "sdl2-compat.renderer.main_view_logical_presentation" #define PROP_TEXTURE_SCALE_MODE "sdl2-compat.texture.scale_mode" #define PROP_SURFACE2 "sdl2-compat.surface2" #define PROP_STREAM2 "sdl2-compat.stream2" @@ -630,7 +635,7 @@ buf[0] = '\0'; GetModuleFileNameA(NULL, buf, maxpath); } -#elif defined(__APPLE__) || defined(SDL_PLATFORM_FREEBSD) +#elif defined(__APPLE__) || defined(SDL_PLATFORM_FREEBSD) || defined(SDL_PLATFORM_QNXNTO) static void OS_GetExeName(char *buf, const unsigned maxpath, bool *use_base_path) { const char *progname = getprogname(); @@ -2280,6 +2285,24 @@ static int GetIndexFromJoystickInstance(SDL_JoystickID jid); +static bool ShouldTransformMouseCoordinates(SDL_Renderer *renderer) +{ + /* The mouse coordinates should only be transformed if the main view is using a + * logical presentation mode, as it can differ from the mode set on a render target. + */ + SDL_RendererLogicalPresentation mode = SDL_LOGICAL_PRESENTATION_DISABLED; + const int propval = (int)SDL3_GetNumberProperty(SDL3_GetRendererProperties(renderer), + PROP_RENDERER_MAIN_VIEW_LOGICAL_PRESENTATION, -1); + if (propval == -1) { + /* No render target bound, query the presentation mode directly. */ + SDL3_GetRenderLogicalPresentation(renderer, NULL, NULL, &mode); + } else { + mode = (SDL_RendererLogicalPresentation)propval; + } + + return mode != SDL_LOGICAL_PRESENTATION_DISABLED; +} + static SDL2_Event *Event3to2(const SDL_Event *event3, SDL2_Event *event2) { SDL_Renderer *renderer; @@ -2336,18 +2359,20 @@ case SDL_EVENT_MOUSE_MOTION: renderer = SDL3_GetRenderer(SDL3_GetWindowFromID(event3->motion.windowID)); if (renderer) { - SDL3_memcpy(&cvtevent3, event3, sizeof (SDL_Event)); - SDL3_ConvertEventToRenderCoordinates(renderer, &cvtevent3); - if (SDL3_GetBooleanProperty(SDL3_GetRendererProperties(renderer), PROP_RENDERER_RELATIVE_SCALING, true)) { - /* Accumulate scaled relative motion */ - residual_motion_x = SDL3_modff(residual_motion_x + cvtevent3.motion.xrel, &cvtevent3.motion.xrel); - residual_motion_y = SDL3_modff(residual_motion_y + cvtevent3.motion.yrel, &cvtevent3.motion.yrel); - } else { - /* Undo the relative scaling that SDL_ConvertEventToRenderCoordinates() performed */ - cvtevent3.motion.xrel = event3->motion.xrel; - cvtevent3.motion.yrel = event3->motion.yrel; + if (ShouldTransformMouseCoordinates(renderer)) { + SDL3_memcpy(&cvtevent3, event3, sizeof (SDL_Event)); + SDL3_ConvertEventToRenderCoordinates(renderer, &cvtevent3); + if (SDL3_GetBooleanProperty(SDL3_GetRendererProperties(renderer), PROP_RENDERER_RELATIVE_SCALING, true)) { + /* Accumulate scaled relative motion */ + residual_motion_x = SDL3_modff(residual_motion_x + cvtevent3.motion.xrel, &cvtevent3.motion.xrel); + residual_motion_y = SDL3_modff(residual_motion_y + cvtevent3.motion.yrel, &cvtevent3.motion.yrel); + } else { + /* Undo the relative scaling that SDL_ConvertEventToRenderCoordinates() performed */ + cvtevent3.motion.xrel = event3->motion.xrel; + cvtevent3.motion.yrel = event3->motion.yrel; + } + event3 = &cvtevent3; } - event3 = &cvtevent3; } if (UseSDL2PrereleaseEvents) { SDL2PRERELEASE_MouseMotionEvent *motion = (SDL2PRERELEASE_MouseMotionEvent *)&event2->motion; @@ -2368,9 +2393,11 @@ case SDL_EVENT_MOUSE_BUTTON_UP: renderer = SDL3_GetRenderer(SDL3_GetWindowFromID(event3->button.windowID)); if (renderer) { - SDL3_memcpy(&cvtevent3, event3, sizeof(SDL_Event)); - SDL3_ConvertEventToRenderCoordinates(renderer, &cvtevent3); - event3 = &cvtevent3; + if (ShouldTransformMouseCoordinates(renderer)) { + SDL3_memcpy(&cvtevent3, event3, sizeof (SDL_Event)); + SDL3_ConvertEventToRenderCoordinates(renderer, &cvtevent3); + event3 = &cvtevent3; + } } if (UseSDL2PrereleaseEvents) { SDL2PRERELEASE_MouseButtonEvent *button = (SDL2PRERELEASE_MouseButtonEvent *)&event2->button; @@ -2387,9 +2414,11 @@ case SDL_EVENT_MOUSE_WHEEL: renderer = SDL3_GetRenderer(SDL3_GetWindowFromID(event3->wheel.windowID)); if (renderer) { - SDL3_memcpy(&cvtevent3, event3, sizeof(SDL_Event)); - SDL3_ConvertEventToRenderCoordinates(renderer, &cvtevent3); - event3 = &cvtevent3; + if (ShouldTransformMouseCoordinates(renderer)) { + SDL3_memcpy(&cvtevent3, event3, sizeof (SDL_Event)); + SDL3_ConvertEventToRenderCoordinates(renderer, &cvtevent3); + event3 = &cvtevent3; + } } if (UseSDL2PrereleaseEvents) { SDL2PRERELEASE_MouseWheelEvent *wheel = (SDL2PRERELEASE_MouseWheelEvent *)&event2->wheel; @@ -6181,6 +6210,24 @@ SDL_DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer, SDL_Texture *texture) { + if (!renderer) { + return -1; + } + + if (texture) { + /* When initially setting a render target, store the main view logical presentation mode, + * as it needs to be queried when potentially transforming mouse coordinates in events. + */ + SDL_Texture *current_target = SDL3_GetRenderTarget(renderer); + if (!current_target) { + SDL_RendererLogicalPresentation mode = SDL_LOGICAL_PRESENTATION_DISABLED; + SDL3_GetRenderLogicalPresentation(renderer, NULL, NULL, &mode); + SDL3_SetNumberProperty(SDL3_GetRendererProperties(renderer), PROP_RENDERER_MAIN_VIEW_LOGICAL_PRESENTATION, mode); + } + } else { + SDL3_ClearProperty(SDL3_GetRendererProperties(renderer), PROP_RENDERER_MAIN_VIEW_LOGICAL_PRESENTATION); + } + if (!SDL3_SetRenderTarget(renderer, texture)) { return -1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/src/sdl3_include_wrapper.h new/sdl2-compat-2.32.74/src/sdl3_include_wrapper.h --- old/sdl2-compat-2.32.72/src/sdl3_include_wrapper.h 2026-07-14 01:39:32.000000000 +0200 +++ new/sdl2-compat-2.32.74/src/sdl3_include_wrapper.h 2026-09-22 22:05:04.000000000 +0200 @@ -1336,6 +1336,19 @@ #define SDL_GetDeviceFormFactorName IGNORE_THIS_VERSION_OF_SDL_GetDeviceFormFactorName #define SDL_IsUbuntuTouch IGNORE_THIS_VERSION_OF_SDL_IsUbuntuTouch #define SDL_GetNumProperties IGNORE_THIS_VERSION_OF_SDL_GetNumProperties +#define SDL_JoystickHasSensor IGNORE_THIS_VERSION_OF_SDL_JoystickHasSensor +#define SDL_SetJoystickSensorEnabled IGNORE_THIS_VERSION_OF_SDL_SetJoystickSensorEnabled +#define SDL_JoystickSensorEnabled IGNORE_THIS_VERSION_OF_SDL_JoystickSensorEnabled +#define SDL_GetJoystickSensorDataRate IGNORE_THIS_VERSION_OF_SDL_GetJoystickSensorDataRate +#define SDL_GetJoystickSensorData IGNORE_THIS_VERSION_OF_SDL_GetJoystickSensorData +#define SDL_SetRenderViewportFloat IGNORE_THIS_VERSION_OF_SDL_SetRenderViewportFloat +#define SDL_GetRenderViewportFloat IGNORE_THIS_VERSION_OF_SDL_GetRenderViewportFloat +#define SDL_SetRenderClipRectFloat IGNORE_THIS_VERSION_OF_SDL_SetRenderClipRectFloat +#define SDL_GetRenderClipRectFloat IGNORE_THIS_VERSION_OF_SDL_GetRenderClipRectFloat +#define SDL_GetOpenHarmonySDKVersion IGNORE_THIS_VERSION_OF_SDL_GetOpenHarmonySDKVersion +#define SDL_GetOpenHarmonyInternalStoragePath IGNORE_THIS_VERSION_OF_SDL_GetOpenHarmonyInternalStoragePath +#define SDL_RequestOpenHarmonyPermission IGNORE_THIS_VERSION_OF_SDL_RequestOpenHarmonyPermission +#define SDL_GetAudioDeviceProperties IGNORE_THIS_VERSION_OF_SDL_GetAudioDeviceProperties #define SDL_FUNCTION_POINTER_IS_VOID_POINTER 1 @@ -6574,6 +6587,58 @@ #undef SDL_GetNumProperties #endif +#ifdef SDL_JoystickHasSensor +#undef SDL_JoystickHasSensor +#endif + +#ifdef SDL_SetJoystickSensorEnabled +#undef SDL_SetJoystickSensorEnabled +#endif + +#ifdef SDL_JoystickSensorEnabled +#undef SDL_JoystickSensorEnabled +#endif + +#ifdef SDL_GetJoystickSensorDataRate +#undef SDL_GetJoystickSensorDataRate +#endif + +#ifdef SDL_GetJoystickSensorData +#undef SDL_GetJoystickSensorData +#endif + +#ifdef SDL_SetRenderViewportFloat +#undef SDL_SetRenderViewportFloat +#endif + +#ifdef SDL_GetRenderViewportFloat +#undef SDL_GetRenderViewportFloat +#endif + +#ifdef SDL_SetRenderClipRectFloat +#undef SDL_SetRenderClipRectFloat +#endif + +#ifdef SDL_GetRenderClipRectFloat +#undef SDL_GetRenderClipRectFloat +#endif + +#ifdef SDL_GetOpenHarmonySDKVersion +#undef SDL_GetOpenHarmonySDKVersion +#endif + +#ifdef SDL_GetOpenHarmonyInternalStoragePath +#undef SDL_GetOpenHarmonyInternalStoragePath +#endif + +#ifdef SDL_RequestOpenHarmonyPermission +#undef SDL_RequestOpenHarmonyPermission +#endif + +#ifdef SDL_GetAudioDeviceProperties +#undef SDL_GetAudioDeviceProperties +#endif + /* see at top. */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdl2-compat-2.32.72/src/version.rc new/sdl2-compat-2.32.74/src/version.rc --- old/sdl2-compat-2.32.72/src/version.rc 2026-09-02 18:25:35.000000000 +0200 +++ new/sdl2-compat-2.32.74/src/version.rc 2026-10-03 00:48:04.000000000 +0200 @@ -3,8 +3,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US VS_VERSION_INFO VERSIONINFO - FILEVERSION 2,32,72,0 - PRODUCTVERSION 2,32,72,0 + FILEVERSION 2,32,74,0 + PRODUCTVERSION 2,32,74,0 FILEFLAGSMASK 0x3fL FILEFLAGS 0x0L FILEOS 0x40004L @@ -17,12 +17,12 @@ BEGIN VALUE "CompanyName", "\0" VALUE "FileDescription", "SDL\0" - VALUE "FileVersion", "2, 32, 72, 0\0" + VALUE "FileVersion", "2, 32, 74, 0\0" VALUE "InternalName", "SDL\0" VALUE "LegalCopyright", "Copyright (C) 2026 Sam Lantinga\0" VALUE "OriginalFilename", "SDL2.dll\0" VALUE "ProductName", "Simple DirectMedia Layer 2.0 wrapper\0" - VALUE "ProductVersion", "2, 32, 72, 0\0" + VALUE "ProductVersion", "2, 32, 74, 0\0" END END BLOCK "VarFileInfo"
