Fri, 28 Sep 2018 21:19:27 -0700Mark a subsystem as dummy, not disabled, if it was intended to be compiled in.
Sam Lantinga <slouken@libsdl.org> [Fri, 28 Sep 2018 21:19:27 -0700] rev 12258
Mark a subsystem as dummy, not disabled, if it was intended to be compiled in.

From Tom Black:

I'm having problems initializing the sensor module. I'm compiling with a standard ./configure && make && sudo make install, and the module says it's enabled, but SDL_Init(SDL_INIT_EVERYTHING) is failing with SDL_GetError() returning "SDL not built with sensor support".

Fri, 28 Sep 2018 21:03:39 -0700commit 8f4dedc039190f5e734c47dcc4fc021b5793b659
Sam Lantinga <slouken@libsdl.org> [Fri, 28 Sep 2018 21:03:39 -0700] rev 12257
commit 8f4dedc039190f5e734c47dcc4fc021b5793b659
Author: MichaƂ Janiszewski <janisozaur+signed@gmail.com>
Date: Fri Sep 28 20:38:04 2018 +0200

CMake: fix building tests on Linux

In case where libunwind.h has been found, it will be used by compiler,
but linker wasn't updated to reflect use of this new library.

Fri, 28 Sep 2018 20:48:18 -0700Fixed bug 4283 - SDL's version of memset is different from libc's
Sam Lantinga <slouken@libsdl.org> [Fri, 28 Sep 2018 20:48:18 -0700] rev 12256
Fixed bug 4283 - SDL's version of memset is different from libc's

janisozaur

memset's documentation reads:

* The memset() function shall copy c (converted to an unsigned char) into each of the first n bytes of the object pointed to by s. (http://pubs.opengroup.org/onlinepubs/9699919799/functions/memset.html)
* Sets the first count characters of dest to the character c. (https://msdn.microsoft.com/en-us/library/1fdeehz6.aspx)
* write a byte to a byte string (https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/memset.3.html)

The highlight here is they all mean a single _byte_, even though memset receives a parameter of type int, which can hold more data than a single byte. SDL's implementation of memset, however, does not clear any of the higher bits, causing an erroneous behaviour when passed an argument bigger than 0xff.

Fri, 28 Sep 2018 20:39:57 -0700Ensure we wait on the surface resize before returning from setting fullscreen mode.
Sam Lantinga <slouken@libsdl.org> [Fri, 28 Sep 2018 20:39:57 -0700] rev 12255
Ensure we wait on the surface resize before returning from setting fullscreen mode.

Sat, 29 Sep 2018 01:24:10 +0300SDL_vsnprintf: implemented '+' flag for signed integers printing.
Ozkan Sezer <sezeroz@gmail.com> [Sat, 29 Sep 2018 01:24:10 +0300] rev 12254
SDL_vsnprintf: implemented '+' flag for signed integers printing.

it is, of course, ignored for %u, %x, %o and %p.

Sat, 29 Sep 2018 00:51:24 +0300SDL_vsnprintf: fix numerics if both zero-padding and a field are given.
Ozkan Sezer <sezeroz@gmail.com> [Sat, 29 Sep 2018 00:51:24 +0300] rev 12253
SDL_vsnprintf: fix numerics if both zero-padding and a field are given.

it used to place zeroes between the sign and the number. (space-padding
from within SDL_PrintString() seems OK: spaces are added before sign.)

also fixed the maxlen handling if the number has a sign.

Fri, 28 Sep 2018 17:01:24 +0300replace bool stuff in controller_type.h with SDL_bool.
Ozkan Sezer <sezeroz@gmail.com> [Fri, 28 Sep 2018 17:01:24 +0300] rev 12252
replace bool stuff in controller_type.h with SDL_bool.

remove bool<->SDL_bool dance in SDL_joystick.c:SDL_IsJoystickSteamController()
after the controller_type.h change.

Fri, 28 Sep 2018 14:01:40 +0300SDL_hidapi_ps4.c: add HAVE_ENDPOINTVOLUME_H check to win32 volume code.
Ozkan Sezer <sezeroz@gmail.com> [Fri, 28 Sep 2018 14:01:40 +0300] rev 12251
SDL_hidapi_ps4.c: add HAVE_ENDPOINTVOLUME_H check to win32 volume code.

this makes it build with my old toolchain with mingw-w64 1.0.10 headers

Fri, 28 Sep 2018 13:44:10 +0300hidapi/windows/hid.c: comment out ntdef.h include after windows.h.
Ozkan Sezer <sezeroz@gmail.com> [Fri, 28 Sep 2018 13:44:10 +0300] rev 12250
hidapi/windows/hid.c: comment out ntdef.h include after windows.h.

not necessary and can cause redefinition errors in some toolchains.

Fri, 28 Sep 2018 13:41:04 +0300configury, cmake: add check for endpointvolume.h :
Ozkan Sezer <sezeroz@gmail.com> [Fri, 28 Sep 2018 13:41:04 +0300] rev 12249
configury, cmake: add check for endpointvolume.h :

add HAVE_ENDPOINTVOLUME_H, HAVE_MMDEVICEAPI_H and HAVE_AUDIOCLIENT_H
in SDL_config.h.in, SDL_config.h.cmake, SDL_config_windows.h, and in
SDL_config_winrt.h.