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.

Fri, 28 Sep 2018 11:30:50 +0300configury, cmake: make wasapi option independent of directx.
Ozkan Sezer <sezeroz@gmail.com> [Fri, 28 Sep 2018 11:30:50 +0300] rev 12248
configury, cmake: make wasapi option independent of directx.

Fri, 28 Sep 2018 01:18:54 -0700Fixed building with Xcode 10.0
Sam Lantinga <slouken@libsdl.org> [Fri, 28 Sep 2018 01:18:54 -0700] rev 12247
Fixed building with Xcode 10.0