Mon, 07 Nov 2016 21:10:01 +0100Fixed audio conversion for unsigned 16 bit data.
Philipp Wiesemann [Mon, 07 Nov 2016 21:10:01 +0100] rev 10591
Fixed audio conversion for unsigned 16 bit data.

Sun, 06 Nov 2016 20:26:48 -0800Fixed bug 3481 - Configure fails to detect dynamic library support on powerpc64le
Sam Lantinga [Sun, 06 Nov 2016 20:26:48 -0800] rev 10590
Fixed bug 3481 - Configure fails to detect dynamic library support on powerpc64le

Sam

I've discovered that when building on powerpc64le (and probably powerpc64) SDL's configure script fails to detect dynamic library support, causing it to build a static library. This causes link failures due to undefined symbols later when packages link with -lSDL.

This seems to be because the included autotools package is too old to detect powerpc64le. This change corrects the problem for me but newer versions of autotools should handle it without a patch

Sun, 06 Nov 2016 15:15:32 -0800Better fix for last point in D3D11 renderer, thanks to Nader Golbaz
Sam Lantinga [Sun, 06 Nov 2016 15:15:32 -0800] rev 10589
Better fix for last point in D3D11 renderer, thanks to Nader Golbaz

Sun, 06 Nov 2016 14:13:28 -0800Shifting a value by more than its bits isn't defined and has varying behavior depending on compiler and platform
Sam Lantinga [Sun, 06 Nov 2016 14:13:28 -0800] rev 10588
Shifting a value by more than its bits isn't defined and has varying behavior depending on compiler and platform

Sun, 06 Nov 2016 10:01:08 -0800Fixed bug 3468 - _allshr in SDL_stdlib.c is not working properly
Sam Lantinga [Sun, 06 Nov 2016 10:01:08 -0800] rev 10587
Fixed bug 3468 - _allshr in SDL_stdlib.c is not working properly

Mark Pizzolato

On Windows with Visual Studio, when building SDL as a static library using the x86 (32bit) mode, several intrinsic operations are implemented in code in SDL_stdlib.c.

One of these, _allshr() is not properly implemented and fails for some input. As a result, some operations on 64bit data elements (long long) don't always work.

I classified this bug as a blocker since things absolutely don't work when the affected code is invoked. The affected code is only invoked when SDL is compiled in x86 mode on Visual Studio when building a SDL as a static library. This build environment isn't common, and hence the bug hasn't been noticed previously.

I reopened #2537 and mentioned this problem and provided a fix. That fix is provided again here along with test code which could be added to some of the SDL test code. This test code verifies that the x86 intrinsic routines produce the same results as the native x64 instructions which these routines emulate under the Microsoft compiler. The point of the tests is to make sure that Visual Studio x86 code produces the same results as Visual Studio x64 code. Some of the arguments (or boundary conditions) may produce different results on other compiler environments, so the tests really shouldn't be run on all compilers. The test driver only actually exercised code when the compiler defines _MSC_VER, so the driver can generically be invoked without issue.

Sun, 06 Nov 2016 09:30:06 -0800Fixed bug 3476 - round() needs _GNU_SOURCE on some old systems
Sam Lantinga [Sun, 06 Nov 2016 09:30:06 -0800] rev 10586
Fixed bug 3476 - round() needs _GNU_SOURCE on some old systems

Ozkan Sezer

On systems with old glibc, such mine with glibc-2.8, the following warning
is issued and is fixed easily by defining _GNU_SOURCE:

/home/me/SDL2-2.0.5/src/video/x11/SDL_x11modes.c: In function 'CalculateXRandRRefreshRate':
/home/me/SDL2-2.0.5/src/video/x11/SDL_x11modes.c:263: warning: implicit declaration of function 'round'
/home/me/SDL2-2.0.5/src/video/x11/SDL_x11modes.c:263: warning: incompatible implicit declaration of built-in function 'round'

Sun, 06 Nov 2016 08:47:40 -0800Fixed bug 2421 for D3D11 - SDL_RenderCopyEx off by one when rotating by 90 and -90.
Sam Lantinga [Sun, 06 Nov 2016 08:47:40 -0800] rev 10585
Fixed bug 2421 for D3D11 - SDL_RenderCopyEx off by one when rotating by 90 and -90.

Nader Golbaz

Updated patch for direct3d renderers

Sun, 06 Nov 2016 08:42:46 -0800Fixed bug 2421 for D3D9 - SDL_RenderCopyEx off by one when rotating by 90 and -90
Sam Lantinga [Sun, 06 Nov 2016 08:42:46 -0800] rev 10584
Fixed bug 2421 for D3D9 - SDL_RenderCopyEx off by one when rotating by 90 and -90

Nader Golbaz

Updated patch for direct3d renderers

Sun, 06 Nov 2016 08:34:27 -0800Fixed 2942 - Wayland: Drag and Drop / Clipboard
Sam Lantinga [Sun, 06 Nov 2016 08:34:27 -0800] rev 10583
Fixed 2942 - Wayland: Drag and Drop / Clipboard

x414e54

I have implemented Drag and Drop and Clipboard support for Wayland.

Drag and dropping files from nautilus to the testdropfile application seems to work and also copy and paste.

Sat, 05 Nov 2016 21:23:17 +0100ALSA: Fixed compile warning about unused function.
Philipp Wiesemann [Sat, 05 Nov 2016 21:23:17 +0100] rev 10582
ALSA: Fixed compile warning about unused function.

Found by buildbot.