Thu, 15 Nov 2018 18:22:30 +0000Emscripten: make CloseAudio actually close audio default tip
Sylvain Beucler <beuc@beuc.net> [Thu, 15 Nov 2018 18:22:30 +0000] rev 12413
Emscripten: make CloseAudio actually close audio
cf. https://bugzilla.libsdl.org/show_bug.cgi?id=4176

Thu, 15 Nov 2018 07:20:02 +0300fix permissions
Ozkan Sezer <sezeroz@gmail.com> [Thu, 15 Nov 2018 07:20:02 +0300] rev 12412
fix permissions

Wed, 14 Nov 2018 22:38:58 -0500software: fix blits with color mods that change during a command queue run.
Ryan C. Gordon <icculus@icculus.org> [Wed, 14 Nov 2018 22:38:58 -0500] rev 12411
software: fix blits with color mods that change during a command queue run.

Wed, 14 Nov 2018 13:37:22 -0800Fixed bug 3193 - Dualshock 3's motion sensors overwrite analog stick
Sam Lantinga <slouken@libsdl.org> [Wed, 14 Nov 2018 13:37:22 -0800] rev 12410
Fixed bug 3193 - Dualshock 3's motion sensors overwrite analog stick

maxxus

The Dualshock 3's motion sensors don't seem to be reported by the call to EVIOCGBIT but they still send EV_ABS events. Because they're not reported by EVIOCGBIT they're not assigned a proper axis ids and the default of 0 is used, which is the valid id for the left analog sticks left/right axis.

Wed, 14 Nov 2018 20:00:03 +0300revert commit aad2440e3d61 for consistency (c.f. bug #4367.) SDL-1.2
Ozkan Sezer <sezeroz@gmail.com> [Wed, 14 Nov 2018 20:00:03 +0300] rev 12409
revert commit aad2440e3d61 for consistency (c.f. bug #4367.)

Mon, 12 Nov 2018 19:23:49 -0800Fixed bug 4377 - SDL_PIXELFORMAT enum is anonymous, which prevents its use in a templated function
Sam Lantinga <slouken@libsdl.org> [Mon, 12 Nov 2018 19:23:49 -0800] rev 12408
Fixed bug 4377 - SDL_PIXELFORMAT enum is anonymous, which prevents its use in a templated function

zen3d

While trying to build Pixie lisp (https://github.com/pixie-lang/pixie), which uses SDL for multimedia output, the mandelbrot example won't build. The problem is that internally pixie uses a templated function to dump a value, and gcc chokes because SDL_PIXELFORMAT_RGA8888 is an anonymous enum.

I solved the problem locally by changing from:
enum {
SDL_PIXELFORMAT_UNKNOWN,
... etc. ...
SDL_PIXELFORMAT_YUYV = ... etc ...
};
to:
typedef enum {
SDL_PIXELFORMAT_UNKNOWN,
... etc. ...
SDL_PIXELFORMAT_YUYV = ... etc ...
} SDL_PIXELFORMAT_ENUM;
The net result of this change is that the enum containing SDL_PIXELFORMAT_* is no longer an anonymous enum and can now be used by a templated function.

This local change fixes Pixie lisp for me.

I did notice that you use the idiom
typedef enum {
... etc ...
} SDL_FOO;
elsewhere in your code, so that change to SDL_PIXELFORMAT doesn't look like it would have a negative impact.

Mon, 12 Nov 2018 16:42:49 -0800Fixed bug 4366 - Compile throws a warning on RPI (Raspbian Stretch)
Sam Lantinga <slouken@libsdl.org> [Mon, 12 Nov 2018 16:42:49 -0800] rev 12407
Fixed bug 4366 - Compile throws a warning on RPI (Raspbian Stretch)

midwan

When trying to compile on a Raspberry Pi 3, running Raspbian Stretch (fully updated), a warning appears:

/home/pi/projects/SDL/src/test/SDL_test_memory.c: In function ‘SDL_TrackAllocation’:
/home/pi/projects/SDL/src/test/SDL_test_memory.c:112:109: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘unw_word_t {aka unsigned int}’ [-Wformat=]
snprintf(entry->stack_names[stack_index], sizeof(entry->stack_names[stack_index]), "%s+0x%llx", sym, offset);

Mon, 12 Nov 2018 16:34:58 -0800Fixed bug 4367 - compatibility version decreased between 2.0.8 and 2.0.9
Sam Lantinga <slouken@libsdl.org> [Mon, 12 Nov 2018 16:34:58 -0800] rev 12406
Fixed bug 4367 - compatibility version decreased between 2.0.8 and 2.0.9

Joshua Root

The change resulting from Bug 4208 changed the compatibility_version of libSDL2 from 9.0.0 to 1.0.0. This is simply wrong.

This means that programs linked against 2.0.9 are considered by the dynamic linker to be compatible with all previous versions of libSDL2. This is not the case since new public symbols have been added.

The way compatibility_version and current_version are meant to work is:
* current_version increases every time the library changes in any way.
* compatibility_version is increased to match current_version whenever new public symbols are added.

Thus both versions should only ever increase. The solution to the Xcode project and autotools not having matching versions should have been to increase the version(s) in the Xcode project.

Reference: https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/VersionInformation.html

Sat, 10 Nov 2018 20:56:23 -0400cocoa: fix building with the macOS 10.7 SDK (thanks Riccardo!)
Alex Szpakowski <slime73@gmail.com> [Sat, 10 Nov 2018 20:56:23 -0400] rev 12405
cocoa: fix building with the macOS 10.7 SDK (thanks Riccardo!)

Fixes bug #4368

Sat, 10 Nov 2018 16:15:48 -0400Add SDL_TouchDeviceType enum and SDL_GetTouchDeviceType(SDL_TouchID id).
Alex Szpakowski <slime73@gmail.com> [Sat, 10 Nov 2018 16:15:48 -0400] rev 12404
Add SDL_TouchDeviceType enum and SDL_GetTouchDeviceType(SDL_TouchID id).

Touch device types include SDL_TOUCH_DEVICE_DIRECT (a touch screen with window-relative coordinates for touches), SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE (a trackpad-style device with absolute device coordinates), and SDL_TOUCH_DEVICE_INDIRECT_RELATIVE (a trackpad-style device with screen cursor-relative coordinates).

Phone screens are an example of a direct device type. Mac trackpads are the indirect-absolute touch device type. The Apple TV remote is an indirect-relative touch device type.