Thu, 17 Oct 2019 17:51:36 -0700Build fix for the build fix
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2019 17:51:36 -0700] rev 13140
Build fix for the build fix

Thu, 17 Oct 2019 17:51:49 -0700Better fix for iOS build
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2019 17:51:49 -0700] rev 13139
Better fix for iOS build

Thu, 17 Oct 2019 17:47:27 -0700Fixed build on iOS
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2019 17:47:27 -0700] rev 13138
Fixed build on iOS

Thu, 17 Oct 2019 17:47:11 -0700Removed unused variable
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2019 17:47:11 -0700] rev 13137
Removed unused variable

Thu, 17 Oct 2019 17:32:47 -0700Added the hint SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS to control whether Nintendo Switch controllers use their button labels or button positions for game controller button reporting.
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2019 17:32:47 -0700] rev 13136
Added the hint SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS to control whether Nintendo Switch controllers use their button labels or button positions for game controller button reporting.

Thu, 17 Oct 2019 16:59:05 -0700Added support for third party Nintendo Switch controllers that don't support the full protocol
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2019 16:59:05 -0700] rev 13135
Added support for third party Nintendo Switch controllers that don't support the full protocol

Thu, 17 Oct 2019 16:14:17 -0700Merged latest data from Steam
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2019 16:14:17 -0700] rev 13134
Merged latest data from Steam

Thu, 17 Oct 2019 18:48:58 -0300metal: Fix compilation when using older Apple SDKs (bug #4828).
Alex Szpakowski <slime73@gmail.com> [Thu, 17 Oct 2019 18:48:58 -0300] rev 13133
metal: Fix compilation when using older Apple SDKs (bug #4828).

Wed, 16 Oct 2019 13:54:35 -0400emscripten: Patched to compile (thanks, Caleb!).
Ryan C. Gordon <icculus@icculus.org> [Wed, 16 Oct 2019 13:54:35 -0400] rev 13132
emscripten: Patched to compile (thanks, Caleb!).

Fixes Bugzilla #4827.

Wed, 16 Oct 2019 08:45:54 -0700Fixed bug 4785 - SDL_CreateRGBSurface creates 1-bit surfaces with zero pitch
Sam Lantinga <slouken@libsdl.org> [Wed, 16 Oct 2019 08:45:54 -0700] rev 13131
Fixed bug 4785 - SDL_CreateRGBSurface creates 1-bit surfaces with zero pitch

Sylvain

Seems to be a regression in this commit: https://hg.libsdl.org/SDL/rev/cf166abbde4a
SDL_CalculatePitch() was using format->BytesPerPixel, now it uses SDL_BYTESPERPIXEL().

The underlying issue is that "surface->format->BytesPerPixel" is *not* always the same as SDL_BYTESPERPIXEL(format);
BytesPerPixel defined as format->BytesPerPixel = (bpp + 7) / 8;
vs
#define SDL_BYTESPERPIXEL(format) ... (format & 0xff)

Because of SDL_pixels.h format definitions, one is giving a BytesPP 1, the other 0.