Wed, 31 Oct 2018 20:17:53 -0700Fix crash when GL_LoadFunctions()/GLES2_LoadFunctions() fails
Cameron Gutman <cameron.gutman@gmail.com> [Wed, 31 Oct 2018 20:17:53 -0700] rev 12377
Fix crash when GL_LoadFunctions()/GLES2_LoadFunctions() fails
https://bugzilla.libsdl.org/show_bug.cgi?id=4350

We can't safely call GL_DestroyRenderer() until GL_LoadFunctions()
succeeds because we will be missing functions that we try to use
when activating the renderer for destruction if we have an GL context.

Wed, 31 Oct 2018 15:16:51 -0700Fixed bug 4349 - SDL_CreateWindow fails with KMS/DRM after upgrading Mesa to 18.2.3
Sam Lantinga <slouken@libsdl.org> [Wed, 31 Oct 2018 15:16:51 -0700] rev 12376
Fixed bug 4349 - SDL_CreateWindow fails with KMS/DRM after upgrading Mesa to 18.2.3

Rainer Sabelka

After I did an upgrade of my arch Linux installation (resulting in an update of Mesa to version 18.2.3), all my SDL2 applications which use the KMS/DRM driver stopped working.
Reason: Creating a Window with SDL_CreateWindow failed because the call to EGL
eglCreateWindowSurface() returns an error "EGL_BAD_MATCH".
After investigating with the debugger I figured, that the configuration, which has been selected from the output of eglChooseConfig(), has an "EGL_NATIVE_VISUAL_ID" which does not match the "format" of the underlying gbm surface.

The attached patch fixes the problem. It does so, by mimicking Weston's behavior.
All configurations returned from eglChooseConfig() which have an visual_id different from the gbm format are discarded, and only from the remaining ones the "best" match is selected.

Wed, 31 Oct 2018 15:01:20 -0700Fixed bug 4347 - Keyboard LEDs don't work on linux console
Sam Lantinga <slouken@libsdl.org> [Wed, 31 Oct 2018 15:01:20 -0700] rev 12375
Fixed bug 4347 - Keyboard LEDs don't work on linux console

Rainer Sabelka

When using SLD2 on a Linux console with the KMS/DRM video backend and Linux evdev keyboard support, the caps lock, scroll lock, and num lock leds do not work.

The attached patch adds ioctls for setting the LED state in SDL_evdev_kbd.c

Wed, 31 Oct 2018 10:18:05 -0700Added tag release-2.0.9 for changeset 8feb5da6f2fb
Sam Lantinga <slouken@libsdl.org> [Wed, 31 Oct 2018 10:18:05 -0700] rev 12374
Added tag release-2.0.9 for changeset 8feb5da6f2fb

Tue, 30 Oct 2018 20:11:02 +0300rename os2 makefile so that 'make dist' catches it; update it a bit. release-2.0.9
Ozkan Sezer <sezeroz@gmail.com> [Tue, 30 Oct 2018 20:11:02 +0300] rev 12373
rename os2 makefile so that 'make dist' catches it; update it a bit.

Tue, 30 Oct 2018 07:00:03 -0700Fixed bug 4188 - Software renderer SDL_RenderCopyEx blits corrupt image under certain cases
Sam Lantinga <slouken@libsdl.org> [Tue, 30 Oct 2018 07:00:03 -0700] rev 12372
Fixed bug 4188 - Software renderer SDL_RenderCopyEx blits corrupt image under certain cases

Sylvain

Re-opening this issue.

It fixes the test-case, but it introduces a regression with another bug (bug #4313).

So here's a new patch that activate cropping of the source surface to solve the issue.
It also reverts the wrong changeset.
It prevents unneeded colorkey error message.

Mon, 29 Oct 2018 19:58:59 -0700Backed out changeset 9bb50edccc46, SDL_JOYSTICK_HIDAPI is only used on iOS for Steam Controller support, which is not publicly available.
Sam Lantinga <slouken@libsdl.org> [Mon, 29 Oct 2018 19:58:59 -0700] rev 12371
Backed out changeset 9bb50edccc46, SDL_JOYSTICK_HIDAPI is only used on iOS for Steam Controller support, which is not publicly available.

Mon, 29 Oct 2018 20:18:50 -0400winmain: Patched to compile on C89 compilers.
Ryan C. Gordon <icculus@icculus.org> [Mon, 29 Oct 2018 20:18:50 -0400] rev 12370
winmain: Patched to compile on C89 compilers.

Mon, 29 Oct 2018 20:00:03 -0400winmain: Don't use SDL_malloc (or SDL_stack_alloc, which might be malloc).
Ryan C. Gordon <icculus@icculus.org> [Mon, 29 Oct 2018 20:00:03 -0400] rev 12369
winmain: Don't use SDL_malloc (or SDL_stack_alloc, which might be malloc).

Otherwise, we are using the allocator before the app can set up its own hooks.

Now we use VirtualAlloc, and WideCharToMultiByte (because SDL_iconv uses
SDL_malloc, too!) to get ready to call into SDL_main.

This also makes console_wmain() call into the same routines as everything
else, so we don't have to deal with those allocations, too. Hopefully we
end up with the same results from GetCommandLine() as we do in wargv.

Fixes Bugzilla #4340.

Mon, 29 Oct 2018 15:51:38 -0400README-ios: added a note about enabling hidapi.
Ryan C. Gordon <icculus@icculus.org> [Mon, 29 Oct 2018 15:51:38 -0400] rev 12368
README-ios: added a note about enabling hidapi.